angular / clutz

Closure to TypeScript `.d.ts` generator
MIT License
162 stars 60 forks source link

The --externsOverride flag allows one to specify from a command line argument whether to use a custom type alias for a certain type. This overrides the type alias specified in --externsMap. #963

Closed tsjs-copybara-bot closed 4 years ago

tsjs-copybara-bot commented 4 years ago

The --externsOverride flag allows one to specify from a command line argument whether to use a custom type alias for a certain type. This overrides the type alias specified in --externsMap.

The format of --externsOverride is <old-type>:<new-type>

For example, if the --externsMap flag specifies a file that says CustomAny should be the alias used in place of any, then specifying --externsOverride=any:NewCustomAny will cause Gents to emit NewCustomAny in any place where it would previously have used any.