mozilla / nimbus-shared

Shared data and schemas for Project Nimbus
https://mozilla.github.io/nimbus-shared
Mozilla Public License 2.0
5 stars 15 forks source link

Improve generated code in TypeScript #226

Open brennie opened 1 year ago

brennie commented 1 year ago

The generated function names in TypeScript are not idiomatic, e.g.,

typeGuards.normandy_checkConsoleLogArguments
typeGuards.experiments_isNimbusExperiment

It would be much nicer to use if we generated namespaced imports, e.g.

typeGuards.normandy.checkConsoleLogArguments
typeGuards.experiments.isNimbusExperiment