We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 37cc302 + f3d9153 commit 87b61e2Copy full SHA for 87b61e2
index.d.ts
@@ -1,5 +1,9 @@
1
declare module 'react-string-replace' {
2
- function reactStringReplace(text: React.ReactNode, regex: RegExp, cb: (match: string, index: number) => string | JSX.Element): JSX.Element;
+ function reactStringReplace(
3
+ text?: string | React.ReactNodeArray,
4
+ regex?: string | RegExp,
5
+ cb?: (match: string, index: number, offset: number) => React.ReactNode
6
+ ): React.ReactNodeArray;
7
8
export default reactStringReplace;
9
}
0 commit comments