Skip to content

Commit 26061de

Browse files
chore(types): updated ReactNode type (#88)
1 parent 63ed1f8 commit 26061de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
declare module 'react-string-replace' {
1+
declare module "react-string-replace" {
22
function reactStringReplace(
3-
text?: string | React.ReactNodeArray,
4-
regex?: string | RegExp,
3+
text?: string | React.ReactNode[],
4+
regex?: string | RegExp,
55
cb?: (match: string, index: number, offset: number) => React.ReactNode
6-
): React.ReactNodeArray;
6+
): React.ReactNode[];
77

88
export default reactStringReplace;
99
}

0 commit comments

Comments
 (0)