Valid directions examples: Moving north Moving east Moving south Moving west Invalid directions examples: Invalid direction: northeast. Must be north, south, east, or west. Invalid direction: up. Must be north, south, east, or west. In TypeScript, these would be compile-time errors: direction = "northeast"; // Error: Type '"northeast"' is not assignable to type... move("up"); // Error: Argument of type '"up"' is not assignable to...