stripe-js icon indicating copy to clipboard operation
stripe-js copied to clipboard

Provide an API version constant for the types

Open billinghamj opened this issue 11 months ago • 17 comments

The readme mentions:

The type declarations in @stripe/stripe-js for these objects in will always track the latest version of the Stripe API.

It'd be helpful if there was an exported constant providing that version, to ensure we don't hardcode the current version, having the types move to a new version, and unknowingly having a mismatch

billinghamj avatar Aug 16 '23 14:08 billinghamj