-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
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
product_data metadata typescript #342
Comments
Hey @bfourgeaud, did you end up figuring this out? Sorry for the late response! |
@dayhaysoos still not found a way to type the metadata correctly. |
@bfourgeaud That's what I was going to suggest anyway, is there something you think I can do to the type so that you can get your desired results? |
I don't knwo why I can't extend this type. But for what is sure, is that declaring But if someone arrives with better understanding of typescript modules, I would be glad. Because It would be the better way to be able to augment the metadata of the product in a |
Hello,
Does anyone have an idea how to augment the
ProductAttributes.product_data
interface in order to type the product metadata ?I need this in order to handle my product variations, and handle subsequent api calls.
I tried creating a
shoppingCart.d.ts
file but it doesn not work. The interface seems not to be augmentable ...This causes typescript to show errors when I try to access the item metadata
The text was updated successfully, but these errors were encountered: