TypeScript cares about shape. If two declarations have the same properties with the same types, they fit. It does not matter whether one was declared with type and the other with interface.
interface Coord {
x: number;
y: number;
}
type Point = { x: number; y: number };
You will define both forms for a person and write a small function that works with the interface and accepts a value from the alias.
Compute the length of a full name.