-
-
Notifications
You must be signed in to change notification settings - Fork 101
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 definitions #54
Comments
How it looks with type definitions for TypeScript? When will it be supported please? Thanks |
Considering it only inherits declare module 'react-leaflet-markercluster' {
import {MapLayer} from 'react-leaflet'
export default class MarkerClusterGroup extends MapLayer {}
} Edit: Don't forget, it's dependent on |
I am using react-leaflet-markercluster 3.0.0-rc1 and @types/react-leaflet-markercluster 2.0.0 and I get this in the code:
Code is very simple, used the example:
The index.d.ts clearly says that the definitions apply to v2.0, can we have something for 3.0.0? Here is the definition for React Leaflet's FeatureGroup: p.s. MapLayer is gone from React Leaflet v3 so it isn't as simple as @gwillz posted for v2. |
Hi, what types do you use? |
Missing type definitions for TypeScript.
The text was updated successfully, but these errors were encountered: