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 there's a "intermediary" (and very much redundant) definitions created for the mapped type (__type). The actual MappedType definition references this definition.
No seperate enum definition is created, which makes sense because it's never truly referenced. If I do create an explicit reference the enum is generated correctly.
The text was updated successfully, but these errors were encountered:
It should also be noted that type aliases used in the mapped type aren't preserved either, the following TypeScript results in the same schema as in the initial comment:
Possibly related to #232, although this seems more complicated than that.
Given the following TypeScript:
The following schema is generated (with
--aliasRefs
):As you can see there's a "intermediary" (and very much redundant) definitions created for the mapped type (
__type
). The actualMappedType
definition references this definition.No seperate enum definition is created, which makes sense because it's never truly referenced. If I do create an explicit reference the enum is generated correctly.
The text was updated successfully, but these errors were encountered: