React-leaflet: Typescript support

Created on 27 Jan 2016  路  3Comments  路  Source: PaulLeCam/react-leaflet

Has anybody using this library with Typescript? Curious what your experience has been.

Most helpful comment

FYI, I've created typescript definitions and submitted them to DefinitelyTyped:
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13922

All 3 comments

No feedback... I'm closing it but feel free to comment / reopen if relevant.

Just for the record, using it and works well. There's just no typing information, so you'll have to use require instead of import:

declare var require: any
const { Map, TileLayer } = require('../../node_modules/react-leaflet')

FYI, I've created typescript definitions and submitted them to DefinitelyTyped:
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13922

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kojoa picture kojoa  路  3Comments

benzen picture benzen  路  4Comments

farahabdi picture farahabdi  路  3Comments

josdejong picture josdejong  路  4Comments

thenickcox picture thenickcox  路  4Comments