Closed musou1500 closed 5 years ago
I think
Distance
coords
{ [key: string]: PositionAsDecimal }
here is a new declaration.
function findNearest( latlng: PositionAsDecimal, coords: PositionAsDecimal[] | { [key: string]: PositionAsDecimal }, offset?: number, limit?: number ): Distance[] | Distance;
I can send PR, but please help me if you have a better idea.
Any news ?
@rodrigoords nothing....this repository may not be maintained.
This is fixed in v3, which is completely written in TypeScript and will be released shortly.
I think
Distance
should be added to return typecoords
should accepts{ [key: string]: PositionAsDecimal }
here is a new declaration.
I can send PR, but please help me if you have a better idea.