react-leaflet-search icon indicating copy to clipboard operation
react-leaflet-search copied to clipboard

Typescript error in Provider.d.ts

Open dayvsonsales opened this issue 4 years ago • 5 comments

Your library doesn't compile in typescript 3.7.2.

TypeScript error in /node_modules/react-leaflet-search/lib/Providers/Provider.d.ts(22,1):
Declaration or statement expected.  TS1128 

It seems a problem with exporting a type, but I've removed the type statement and now everything works fine.

Problem:

export type { Provider, ProviderOptions };

Solution:

export { Provider, ProviderOptions };

dayvsonsales avatar Nov 12 '20 21:11 dayvsonsales

Can you solve this please?

sahin52 avatar Jun 05 '22 15:06 sahin52

@sahin52 I'm pretty sure that this repo is abandoned

dayvsonsales avatar Jun 07 '22 17:06 dayvsonsales

@dayvsonsales Is there any alternative to this?

SalahAdDin avatar Jun 17 '22 16:06 SalahAdDin

@SalahAdDin I don't know, I'm not working anymore with leaflet. Sorry.

dayvsonsales avatar Jun 20 '22 12:06 dayvsonsales

@SalahAdDin I don't know, I'm not working anymore with leaflet. Sorry.

what are you using then?

SalahAdDin avatar Jun 20 '22 20:06 SalahAdDin