Closed mstijak closed 1 year ago
I've just added a test for TS interface inheritance, but it seems to be working - you can see src/TypeGen/TypeGen.IntegrationTest/TsInterfaceInheritance/TsInterfaceInheritanceTest.cs
.
One thing I noticed is that the spec configures DigitalIdentityContactMedium
and EmailMedium
, but the TS file is for LoginPasswordCredential
- is this just a typo, or can this be the reason for the issue?
It's a dummy mistake from me, but the problem is actually there. It worked when types were added as classes instead of interfaces.
I'll check a bit more. Thank you for the response.
For some reason, I cannot reproduce it anymore. Thank you.
I have two classes registered using the
AddInterface
method.The
EmailMedium
class inheritsDigitalIdentityContactMedium
. The resulting code looks like this:The import is there, but the
extends
is lacking.I believe the issue is in the
TsContentGenerator
.This method looks only for the implemented interfaces and omits the base type. This used to work before. I'm not sure if registering DTO classes as TS interfaces is okay, though.