grantila / typeconv

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

Cyclic -> Circular Dependencies? #41

Open trevormil opened 7 months ago

trevormil commented 7 months ago

The following is a valid schema, but typeconv fails with a cyclic dependency.

export interface D {}
export interface C extends D {}
export interface B {
  fieldOne?: D;
}

export interface A extends B {
  fieldOne?: C;
}