AdaskoTheBeAsT / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
62 stars 12 forks source link

Question: Appended base class to parent class. #30

Closed jayhayman-hdd closed 7 months ago

jayhayman-hdd commented 1 year ago

Hey,

Is there a way to get TypeWriter to output a Base class when inherited?

`
public class GetDelegateByToken : Models.GenericResponse { public string? FirstName { get; set; }

    public string? LastName { get; set; }

    public string? Email { get; set; }

    public bool IsVerified { get; set; }

    public bool IsRegisteredForCurrentEvent { get; set; }
}`

Where : Models.GenericResponse would append the 3 properties from that class to the .tsx output class in JS?

AdaskoTheBeAsT commented 1 year ago

Yes of course please see sample here https://github.com/AdaskoTheBeAsT/NetCoreTypewriterRecipes/blob/master/src/AngularWebApiSample/Models/ComplexAModel.cs