mapbox / pbf

A low-level, lightweight protocol buffers implementation in JavaScript.
BSD 3-Clause "New" or "Revised" License
801 stars 107 forks source link

feat: Add TypeScript support to compiler #138

Open jlucaso1 opened 2 months ago

jlucaso1 commented 2 months ago

Adds the ability to generate TypeScript file for PBF-encoded messages.

A new --typescript flag has been added to the CLI and as an option to the compileRaw function. When enabled, this will produce a TypeScript .ts file.

mourner commented 1 month ago

Hey @jlucaso1, thank you very much for working on this! Just letting you know that we appreciate the PR and will review it closely. It may take some time as there was an alterative push on this in https://github.com/mapbox/pbf/pull/137, but don't let silence / delay discourage you.