You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see the nullable property doesn't reference the NotNull and Null types. This example is of course not a real-world scenario, but it's the easiest way to demonstrate the bug.
Interestingly, when I create a type Nullable = Null | NotNull and use that for a property the interface will reference the Nullable type, but the Nullable definition will not reference Null or NotNull:
Possibly related to #232.
Given the following TypeScript:
The following schema is generated using only
--strictNullChecks
:So far so good. But when I add
--aliasRefs
I get the following:As you can see the
nullable
property doesn't reference theNotNull
andNull
types. This example is of course not a real-world scenario, but it's the easiest way to demonstrate the bug.Interestingly, when I create a type
Nullable = Null | NotNull
and use that for a property the interface will reference theNullable
type, but theNullable
definition will not referenceNull
orNotNull
:The text was updated successfully, but these errors were encountered: