Expected Behavior
The return type of getDirection to should be DirectionConstant | undefined
Actual Behavior
The return type on getDirection to is DirectionConstant
Sample code (if available)
const roomPos = new RoomPosition(25, 25, 'E7N51')
console.log(roomPos.getDirectionTo(roomPos)) //undefined
Your Environment
- Node.js version: 21.5.0
- TypeScript version: 4.3.5
- @types/screeps version: jomik/typed-screeps#flexible-memory
Expected Behavior
The return type of getDirection to should be DirectionConstant | undefined
Actual Behavior
The return type on getDirection to is DirectionConstant
Sample code (if available)
Your Environment