[Enhancement]: Expose Checkout API types for use in TypeScript projects integrating with the Cart and Checkout blocks #47154
Labels
focus: cart
Issues related to the cart.
focus: checkout
Issues related to checkout page.
priority: normal
The issue/PR is of normal priority—not many people are affected or there’s a workaround, etc.
team: Rubik
Store API checkout endpoints, Mini-Cart, Cart and Checkout related issues
type: enhancement
The issue is a request for an enhancement.
Describe the solution you'd like
An easy way to import types for use with blocks that integrate with the Cart and Checkout blocks.
As an example when making an express checkout component it'd be nice to have access to the
PaymentMethodInterface
type as that's what will be passed to the component when registered withregisterExpressPaymentMethod
:This could be through making a new npm package, adding the types to an existing npm package, maybe a WC TypeScript specific package with just types?
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: