azmenak / react-stripe-checkout

Load stripe's checkout.js as a react component. Easiest way to use checkout with React.
MIT License
983 stars 160 forks source link

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

Open mugoosse opened 6 years ago

mugoosse commented 6 years ago

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 & 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.

nerdmax commented 6 years ago

Same issue.