You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this context ListOptions is another model that will also be converted into a TypeScript interface. However, the generated TypeScript interface of my ListData model looks like this:
interfaceListData<TOptions>{ ... }
The generic type constraint is lost. I want to achieve the following:
I was hoping the TypeParameterCollection would contain information about the constraint, so I could achieve the above. However, I was not able to find any reference to generic type constraints. Are they not supported?
The text was updated successfully, but these errors were encountered:
I'm using TypeWriter to convert all my C# models into TypeScript interfaces. One of my models looks like this:
In this context
ListOptions
is another model that will also be converted into a TypeScript interface. However, the generated TypeScript interface of myListData
model looks like this:The generic type constraint is lost. I want to achieve the following:
I was hoping the
TypeParameterCollection
would contain information about the constraint, so I could achieve the above. However, I was not able to find any reference to generic type constraints. Are they not supported?The text was updated successfully, but these errors were encountered: