.For<MyEnum>().ToModule("Foo") doesn't work for enums

Issue #48 resolved
Damian Powell
created an issue

I am very pleased that you implemented Issue 27 (Allow generating stand-alone enums). Thank you! It would be very useful (and help me avoid some manual processing) if you could also implement .ToModule("Foo") for stand alone enums. In the current version, adding ToModule causes a NullReferenceException when the tt file is saved:

Error   2   Running transformation: System.NullReferenceException: Object reference not set to an instance of an object.
   at TypeLite.TypeScriptFluentModuleMember.ToModule(String moduleName) in c:\___PROJECTS___\TypeLITE\TypeLite\TypeScript.cs:line 225
   at ...

Comments (2)

  1. Log in to comment