Vertispan / jsinterop-ts-defs

Ingests jsinterop-annotated Java and generates TypeScript definitions
Apache License 2.0
7 stars 3 forks source link

`@TsIgnore` prevents interface members from being present on subtypes #99

Closed niloc132 closed 8 months ago

niloc132 commented 8 months ago

Using the tests currently in main, add @TsIgnore to NonJsTypeParent, and attempt to build - as this type was already omitted from the generated index.d.ts file, as I understand it it should have minimal impact.

However, after adding that, inherited members from TsInterfaceParent are no longer present:

    export class JsTypeGrandChild implements TsInterfaceParent {
        propertyFromA:string;

        constructor();

        doSomethingFromA():string;
    }

Expected:

    export class JsTypeGrandChild implements TsInterfaceParent {
        propertyFromA:string;
        propertyFromC:string;

        constructor();

        doSomethingFromA():string;
        doSomethingFromC():string;
    }