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
I am just playing around with feTS for the very first time, and I am really impressed so far. Please continue that great work!
But right as I am trying to replace some openapi-generated typescript-angular client with a feTS client, I ran into a problem: In my spec, I am using a type defined in '#/components/schemas/MyType' and an enum defined in '#/components/schemas/MyEnum'. Following your docs, I was able to infer MyType perfectly via type MyType = OASModel<NormalizeOAS<typeof openapi>, 'MyType'> - but I can't find a way to infer MyEnum.
Could anybody help? Is there any way to do that? Thanks a lot!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am just playing around with feTS for the very first time, and I am really impressed so far. Please continue that great work!
But right as I am trying to replace some openapi-generated typescript-angular client with a feTS client, I ran into a problem: In my spec, I am using a type defined in '#/components/schemas/MyType' and an enum defined in '#/components/schemas/MyEnum'. Following your docs, I was able to infer MyType perfectly via
type MyType = OASModel<NormalizeOAS<typeof openapi>, 'MyType'>
- but I can't find a way to infer MyEnum.Could anybody help? Is there any way to do that? Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions