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 type schould be the same as react-leaflet #19

Open
BjoernRave opened this issue Aug 11, 2019 · 1 comment
Open

typescript type schould be the same as react-leaflet #19

BjoernRave opened this issue Aug 11, 2019 · 1 comment

Comments

@BjoernRave
Copy link

hey, because the types of this should be the same as the ones of react-leaflet, it would be easy to publish types for this library or?

@mz8i
Copy link

mz8i commented Sep 2, 2019

It would be great to have the types definition. But before someone publishes them, here's my workaround: install @types/react-leaflet. In your project, create a file react-leaflet-universal.d.ts with the content:

declare module 'react-leaflet-universal` {
    export * from 'react-leaflet';
}

Note that that this just uses react-leaflet so doesn't contain the properties from the decorated components. But at least it will give you type checking for standard properties.

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

2 participants