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

Could not find a declaration file for module 'num2persian'. #19

Open
aliafzali-b opened this issue May 13, 2023 · 2 comments
Open

Could not find a declaration file for module 'num2persian'. #19

aliafzali-b opened this issue May 13, 2023 · 2 comments

Comments

@aliafzali-b
Copy link

aliafzali-b commented May 13, 2023

the types of this module doesn't declared
so we can't use this package in our type-script projects

@mahmoud-eskandari
Copy link
Owner

How did you imported this library into the codebase?

@emadcheshmazar
Copy link

the types of this module doesn't declared so we can't use this package in our type-script projects

create type file (.d.ts) like num2persion.d.ts in types or src/types directory and place this declaration in it:
declare module 'num2persian';

now TypeScript should recognize the module 'num2persian' and the warning should disappear

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

No branches or pull requests

3 participants