mapbox-gl-draw icon indicating copy to clipboard operation
mapbox-gl-draw copied to clipboard

TypeScript

Open tristen opened this issue 9 months ago • 2 comments

This PR replaces .js files in src/ and test/ with .ts. Additionally:

  • Adds npm run tsc to 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.js bundles at 113k
  • dist/mapbox-gl-draw.js bundles at 51k

tristen avatar Mar 13 '25 21:03 tristen

This is awesome. Would love too see this get merged. :)

rewdy avatar May 22 '25 23:05 rewdy

Interested on this been merged.

guillem-aistech avatar Oct 17 '25 11:10 guillem-aistech