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 i'm not sure if this is the best approach, i was thinking of extending the type of CartItems via a d.ts file, but not sure how i can achieve that..any recommendations?
Activity
mcnaveen commentedon Oct 22, 2023
Hi @monarcode Can you try this?
You can extend the CartItems interface.
Then just use CustomCartItems as your Type.
Please let me know how it goes. Happy to help.
monarcode commentedon Oct 22, 2023
Thank you for your response, i was able to get proper type hints by doing something similar
but i'm not sure if this is the best approach, i was thinking of extending the type of CartItems via a d.ts file, but not sure how i can achieve that..any recommendations?
mcnaveen commentedon Oct 22, 2023
Ah. You can do that.
Then in the main file.
mcnaveen commentedon Oct 24, 2023
Hi, @monarcode Since this is not an issue, I'll be moving this to Discussion. Feel free to follow up if needed.
Thanks for understanding 😄