Get nested type from OASOutput #1002
Answered
by
ardatan
Ashraf-Ali-aa
asked this question in
Q&A
-
Hi, I was wondering if there was an elegant way of getting the nested type from the response an example I want to get the type interface for the address. example:
|
Beta Was this translation helpful? Give feedback.
Answered by
ardatan
Dec 30, 2023
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Ashraf-Ali-aa
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
type Address = OASOutput<NormalizeOAS<typeof oas>, '/user/:id', 'POST', 200>['user']['address']