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

Property 'escapeRegex' does not exist on type 'Static' typescript 5.0.3 #2743

Open
muhyasin89 opened this issue Oct 4, 2023 · 0 comments
Open

Comments

@muhyasin89
Copy link

muhyasin89 commented Oct 4, 2023

I'm using 5.0.3 for typescript
i'm using typescript in an vue3 project
when I try

import Inputmask from "inputmask";

Inputmask.escapeRegex(opts.groupSeparator)

I get

Property 'escapeRegex' does not exist on type 'Static'

to resolve this i'm adding manual in

index.d.ts - (DefinitelyTyped/types/inputmask/index.d.ts)

interface Static {
...
 escapeRegex(str: string) : string;
}
@muhyasin89 muhyasin89 changed the title InputMask.escapeRegexis not a function type error in 5.0.3 typescript InputMask.escapeRegex is not a function type error in 5.0.3 typescript Oct 4, 2023
@muhyasin89 muhyasin89 changed the title InputMask.escapeRegex is not a function type error in 5.0.3 typescript Property 'escapeRegex' does not exist on type 'Static' typescript 5.0.3 Oct 5, 2023
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

1 participant