TsGenerator.GetFullyQualifiedTypeName doesn't use ModuleNameFormatter

Issue #79 resolved
Jan Stuchlík
created an issue

As I understand to code, there is missing call to GetModuleName in GetFullyQualifiedTypeName method.

var ts = TypeScript.Definitions();
ts.WithModuleNameFormatter(m => "XXX");
var types = apiModels.Assembly.GetTypes();
foreach(var t in types)
{
   ts.ModelBuilder.Add(t);
}
var model = ts.ModelBuilder.Build();
var myType = model.Classes.First();
var name = ts.ScriptGenerator.GetFullyQualifiedTypeName(myType);
//returns "MyNamespace.MyClass" instead of "XXX.MyClass"

Comments (1)

  1. Log in to comment