Skip to content

Commit 6221db0

Browse files
committed
removed 'any's project wide
1 parent 4289d23 commit 6221db0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export const typedRegExp = <
513513
{
514514
matchAllIn: <T extends string>(
515515
source: T
516-
) => source.matchAll(regExp) as any as RegExpStringIterator<StrictRegExpExecArray<T>>,
516+
) => source.matchAll(regExp) as unknown as RegExpStringIterator<StrictRegExpExecArray<T>>,
517517
replaceAllIn
518518
},
519519
{}
@@ -543,7 +543,7 @@ export const typedRegExp = <
543543
}>),
544544
matchIn: <T extends string>(
545545
source: T
546-
) => source.match(regExp) as any as (Is<HasFlag<'g'>,
546+
) => source.match(regExp) as (Is<HasFlag<'g'>,
547547
GlobalMatches,
548548
StrictRegExpExecArray<T>
549549
>) | null,

0 commit comments

Comments
 (0)