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
All of the return types from my schema are the return type | undefined.
In my open API compliant API, the return types of the functions are not optional, they are required. How can I make this all return the required types instead of optional types in open API fetch?
It’s | undefined because you haven’t checked for the existence of error yet. Once you’ve handled error, then data will always be defined. This is to make sure your error messages are shown to the user / handled properly!
All of the return types from my schema are the return type | undefined.
In my open API compliant API, the return types of the functions are not optional, they are required. How can I make this all return the required types instead of optional types in open API fetch?
e.g. the output type of
data
of a call like this:is
The text was updated successfully, but these errors were encountered: