medipass / react-payment-inputs

A React Hook & Container to help with payment card input fields.
https://medipass.github.io/react-payment-inputs
399 stars 63 forks source link

Types file for Typescript #51

Open HardikDG opened 4 years ago

HardikDG commented 4 years ago

Anyone has created types/used it with typescript? I am using it in the React Typescript and it's giving me the error of Types not found

Install: npm install react-payment-inputs --save Error: Module not found: Can't resolve 'react-payment-inputs' in 'project_react/src/payment'

Could not find a declaration file for module 'react-payment-inputs'. 'project_react/node_modules/react-payment-inputs/lib/index.js' implicitly has an 'any' type. Try npm install @types/react-payment-inputs if it exists or add a new declaration (.d.ts) file containing declare module 'react-payment-inputs';ts(7016)

Xkill119966 commented 3 years ago

me too, i got it this error in typescript

umer17 commented 2 years ago

Any update on this?

Seddy24 commented 2 years ago

npm i --save @types/react-payment-inputs But the images are missing from the typed definition

MrFarhan commented 1 year ago

Facing same issue, the solution is i have uninstalled this pkg and now looking for new similar pkg...

davidy3k commented 9 months ago

Working solution in https://github.com/medipass/react-payment-inputs/issues/89#issuecomment-1479719371