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
But we get one more property description as a string from the JSON of the API. But as we don't have declared the property
description in the interface it shows the error.
Property 'description' does not exist on type 'IUser'
Expected behavior 🤔
There should be a property in the interface IUser. So we can use the description.
Steps to reproduce 🕹
Steps:
Screenshots or Videos 📹
No response
Platform 🌍
This can be seen in any platform. I tested in windows laptop and the browser is chrome.
GIPHY-JS SDK version
"@types/giphy-api": "^2.0.6",
TypeScript version
No response
Additional context 🔦
To solve this problem we can put description: string in the IUser interface and this can easily solve the above problem.
The text was updated successfully, but these errors were encountered:
Duplicates
Latest version
Current behavior 😯
Hi, I am creating a bug first time on GitHub so I can make some mistakes. But I want to contribute something. So below is what I found:
const { data } = await giphyFetch.gif(gifId[gifId?.length - 1]);
In data we have user and in user, we have different property
But we get one more property description as a string from the JSON of the API. But as we don't have declared the property
description in the interface it shows the error.
Property 'description' does not exist on type 'IUser'
Expected behavior 🤔
There should be a property in the interface IUser. So we can use the description.
Steps to reproduce 🕹
Steps:
Screenshots or Videos 📹
No response
Platform 🌍
This can be seen in any platform. I tested in windows laptop and the browser is chrome.
GIPHY-JS SDK version
"@types/giphy-api": "^2.0.6",
TypeScript version
No response
Additional context 🔦
To solve this problem we can put description: string in the IUser interface and this can easily solve the above problem.
The text was updated successfully, but these errors were encountered: