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

TypeScript module typing for intl-tel-input/utils missing #1940

Open
rijx opened this issue Jan 29, 2025 · 1 comment
Open

TypeScript module typing for intl-tel-input/utils missing #1940

rijx opened this issue Jan 29, 2025 · 1 comment

Comments

@rijx
Copy link

rijx commented Jan 29, 2025

Hi there,

First of all: I'm enjoying using this package, thanks for that!

TypeScript is complaining at me because I'm using this line (ES Modules):

loadUtils: () => import("intl-tel-input/utils"),
Could not find a declaration file for module 'intl-tel-input/utils'. '[...]/node_modules/.pnpm/[email protected]/node_modules/intl-tel-input/build/js/utils.js' implicitly has an 'any' type.
  If the 'intl-tel-input' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module 'intl-tel-input/utils';`ts(7016)

But the only known module to TS is intl-tel-input/utils-compiled:

declare module "intl-tel-input/utils-compiled" {

While the module is just intl-tel-input/utils:

"./utils": "./build/js/utils.js",

Would you mind taking a look at this? Thanks!

@Bartek20
Copy link

This issue is solved in open PR #1929.
I'm waitng for author to check it and merge.

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

2 participants