grantila / typeconv

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

Cannot read undefined #42

Open trevormil opened 7 months ago

trevormil commented 7 months ago

The following results in an undefined error when a child type makes a field required that is not required in the parent.

export interface Parent {
    fieldOne?: string
}

export interface Child extends Parent {
    fieldOne: string
}