How can I infer type from a schema which is circularly reference itself #1005
Unanswered
rajibkuet07
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My openapi specification schema -
type DirectoryNode = OASModel<NormalizeOAS<typeof openapi>, 'DirectoryNode'>;
When I try to infer the type it shows
Type of property '"children"' circularly references itself in mapped type '{ name: { type: "primitive"; value: string; isSerialized: false; deserialized: never; }; children: IntersectArraySerializationParams<Never, _$Array<Never>, Any>; }'
in the compile time.Thanks in advance for your support and quick reply.
Beta Was this translation helpful? Give feedback.
All reactions