screepers/Screeps-Typescript-Declarations

lookFor(LOOK_TERRAIN) returns a string, not an array.

perennialinnocence opened this issue · 2 comments

I'm honestly not sure how this can be handled...

you're right and that's weird, since it returns an array for Room.lookForAt(LOOK_TERRAIN, position) and RoomPosition.lookFor(LOOK_STRUCTURE), I think you should report it to Screeps instead

this has been fixed in Screeps now, so there is no more issue.