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
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.
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 ofany
, then specifying --externsOverride=any:NewCustomAny will cause Gents to emitNewCustomAny
in any place where it would previously have usedany
.