The name can be changed like shown in the tutorial:
TypeScript.Definitions()
.ForLoadedAssemblies()
.WithFormatter((type, f) => "I" + ((TypeLite.TsModels.TsClass)type).Name)
How can the module name be changed using fluent formatter?
As of TypeLite version 1.4.0 the following works fine to change module name:
<# var ts = TypeScript.Definitions()
.WithModuleNameFormatter((module) => "my.module.name");#>
Or you can also play with what's already set as module name to have more control like this:
<# var ts = TypeScript.Definitions()
.WithModuleNameFormatter((module) => "I" + ((TypeLite.TsModels.TsModule)module).Name);#>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With