Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types file for Typescript #51

Open
HardikDG opened this issue Nov 9, 2020 · 5 comments
Open

Types file for Typescript #51

HardikDG opened this issue Nov 9, 2020 · 5 comments

Comments

@HardikDG
Copy link

HardikDG commented Nov 9, 2020

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
Copy link

me too, i got it this error in typescript

@umer17
Copy link

umer17 commented Nov 18, 2022

Any update on this?

@Seddy24
Copy link

Seddy24 commented Nov 18, 2022

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

@MrFarhan
Copy link

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

@davidy3k
Copy link

davidy3k commented Feb 19, 2024

Working solution in #89 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants