exaV / screeps-kotlin-types

Screep's Kotlin type definitions
MIT License
17 stars 18 forks source link

Fix type requirement for findClosestByPath with FIND_* #66

Closed magnusesp closed 4 years ago

magnusesp commented 4 years ago

Can't really dictate the return be a RoomObject. As https://docs.screeps.com/api/#Room.find shows, there are many different return types.

This is also in line with Room.find() which is defined as fun <T> find(findConstant: FindConstant<T>, opts: FilterOption<T> = definedExternally): Array<T>