We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems to me that data: GIFObject[] should be data: GIFObject instead for /gifs/random
data: GIFObject[]
data: GIFObject
/gifs/random
'/gifs/random': { GET: { query: { api_key: string tag?: string rating?: string fmt?: string } response: { data: GIFObject[] <========= meta: MetaObject } } }
Here: https://github.com/rawrmaan/restyped-giphy-api/blob/master/giphy-api.d.ts
The text was updated successfully, but these errors were encountered:
For now we can assert the correct type by casting it: <GIFObject>(response.data.data as any)
<GIFObject>(response.data.data as any)
But it would be nice if these typings were updated 👍
Sorry, something went wrong.
No branches or pull requests
It seems to me that
data: GIFObject[]
should bedata: GIFObject
instead for/gifs/random
Here:
https://github.com/rawrmaan/restyped-giphy-api/blob/master/giphy-api.d.ts
The text was updated successfully, but these errors were encountered: