We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4289d23 commit 6221db0Copy full SHA for 6221db0
src/index.ts
@@ -513,7 +513,7 @@ export const typedRegExp = <
513
{
514
matchAllIn: <T extends string>(
515
source: T
516
- ) => source.matchAll(regExp) as any as RegExpStringIterator<StrictRegExpExecArray<T>>,
+ ) => source.matchAll(regExp) as unknown as RegExpStringIterator<StrictRegExpExecArray<T>>,
517
replaceAllIn
518
},
519
{}
@@ -543,7 +543,7 @@ export const typedRegExp = <
543
}>),
544
matchIn: <T extends string>(
545
546
- ) => source.match(regExp) as any as (Is<HasFlag<'g'>,
+ ) => source.match(regExp) as (Is<HasFlag<'g'>,
547
GlobalMatches,
548
StrictRegExpExecArray<T>
549
>) | null,
0 commit comments