typed-screeps
typed-screeps copied to clipboard
`OBSTACLE_OBJECT_TYPES` causes `includes` argument to be too narrow, defeating the purpose of it existing.
Expected Behavior
The following should work fine
OBSTACLE_OBJECT_TYPES.includes("test")
Actual Behavior
It makes ts angry >:(
Sample code (if available)
workaround
(OBSTACLE_OBJECT_TYPES as string[]).includes("test")
Your Environment
- Node.js version: v14.18.2
- TypeScript version: 4.3.5
@types/screepsversion: ^3.2.3