Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript error in Provider.d.ts #41

Open
dayvsonsales opened this issue Nov 12, 2020 · 5 comments
Open

Typescript error in Provider.d.ts #41

dayvsonsales opened this issue Nov 12, 2020 · 5 comments

Comments

@dayvsonsales
Copy link

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 };
@sahin52
Copy link

sahin52 commented Jun 5, 2022

Can you solve this please?

@dayvsonsales
Copy link
Author

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

@SalahAdDin
Copy link

@dayvsonsales Is there any alternative to this?

@dayvsonsales
Copy link
Author

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

@SalahAdDin
Copy link

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

what are you using then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants