RoomPosition.findInRange or findclosestByRange can not infer the type of params in filter callback function when the first arg is targets[] instead of a FindConstant.
We should fix this, because in typescript strict mode, implict any type for function params is forbidden.
Besides, RoomPosition.findInRange or findclosestByRange with first arg as targets[] also do not support filter callback's type predicate.
I will fix it after this PR is merged.
Checklists
[x] Test passed
[x] Coding style (indentation, etc)
[x] Edits have been made to src/ files not index.d.ts
Brief Description
See #219.
RoomPosition.findInRange
orfindclosestByRange
can not infer the type of params in filter callback function when the first arg istargets[]
instead of aFindConstant
.We should fix this, because in typescript strict mode, implict
any
type for function params is forbidden.Besides,
RoomPosition.findInRange
orfindclosestByRange
with first arg astargets[]
also do not support filter callback's type predicate.I will fix it after this PR is merged.
Checklists
src/
files notindex.d.ts
npm run dtslint
to updateindex.d.ts