screepers / Screeps-Typescript-Declarations

The repository for *Screeps's* TypeScript type definitions.
69 stars 44 forks source link

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

Closed perennialinnocence closed 8 years ago

perennialinnocence commented 8 years ago

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

valerian commented 8 years ago

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

valerian commented 8 years ago

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