Is it possible for Typelite to generate a TypeScript class instead of an interface? Something like:
public class Person
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
to
export class Person
{
constructor() {}
FirstName: string;
LastName: string;
}
I'm not looking for any functionality in the generated classes, only an easier way to be able to instantiate classes clientside without having to initialize the entire interface.
For example, I would prefer being able to do this:
var person = new Person();
Instead of
var person = {
FirstName: null,
LastName: null
};