mapbox-gl-draw
mapbox-gl-draw copied to clipboard
TypeScript
This PR replaces .js files in src/ and test/ with .ts. Additionally:
- Adds
npm run tscto evaluate typings - Adds prettier as a husky chore to format the codebase consistently
- Updated function prototypes to classes
- Converted most utility functions to named functions for naming consistency across the codebase
Note: I haven't touched benchmarks. Things remain JavaScript there.
dist/mapbox-gl-draw-unminified.jsbundles at113kdist/mapbox-gl-draw.jsbundles at51k
This is awesome. Would love too see this get merged. :)
Interested on this been merged.