grantila / typeconv

Convert between JSON Schema, TypeScript, GraphQL, Open API and SureType
MIT License
424 stars 8 forks source link

TS -> OAPI - ignores interfaces inheritance #35

Closed viters closed 1 year ago

viters commented 1 year ago

Given the following typescript file:

interface A {
    a: string;
}

interface B extends A {
    b: string;
}

OpenAPI will show only b property on type B. The below example does not work as well:

type B = A & {
    b: string;
};

Can be related to https://github.com/grantila/typeconv/issues/15