reinforced-typings

Is there a way to generate constants with Reinforced.Typings?


I have a big C# class with a lot of const fields in it. Is there a way to include the values of these consts when generating ts types with Reinforced.Typings? I have read the documentation up and down several times, but I haven't been able to find an answer there.


Solution

  • Properties cannot be constant in C#. Do you mean const fields?

    In this case you can use fluent configuration like .ExportAsClass<...>().WithPublicFields().