react-stripe-checkout icon indicating copy to clipboard operation
react-stripe-checkout copied to clipboard

[ts] `opened` and `closed` props are missing in TypeScript type declarations

Open mugoosse opened this issue 7 years ago • 1 comments

I would like to use the closed prop in my TypeScript application but it is not compiling because it is missing in the index.d.ts type declarations file, throwing this error:

[ts] Property 'closed' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<StripeCheckout> & Readonly<{ children?: ReactNode;...'.

I am quite new to TypeScript and do not currently know how to make it work without those props being added to the index.d.ts of react-stripe-checkout.

mugoosse avatar Jun 12 '18 00:06 mugoosse

Same issue.

nerdmax avatar Sep 13 '18 04:09 nerdmax