#hassan
1 messages · Page 1 of 1 (latest)
Should be in the sourcecode here: https://github.com/stripe/stripe-node/tree/master/types
fantastic. i was looking at stripes react library instead
If you want the types for react-stripe-js those are also available: https://github.com/stripe/react-stripe-js/blob/master/src/types/index.ts
do you know how i would import just the types ?
I got a page which does a fetch call to return Charges.
and i just want to type the response
What do you mean and what are you trying to do? It sounds like you want the stripe-node types @wary echo linked to, but that should be handled by your ts flows using that library i would think
im using React
the call from my server returns me a Charges object
I just want to type this response. Dont worry, i just copied over the file from the Repo. I couldnt work out how to import the type only without loading the libray (since i am in React code and stripe-node is Node)