-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathindex.d.ts
More file actions
26 lines (22 loc) · 695 Bytes
/
index.d.ts
File metadata and controls
26 lines (22 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
declare module "react-string-replace" {
function reactStringReplace(
text?: string | React.ReactNode[],
regex?: string | RegExp,
cb?: (match: string, index: number, offset: number) => React.ReactNode
): React.ReactNode[];
type ReactStringReplaceRules = {
search: string | RegExp;
onMatch: (match: string, index: number) => React.ReactNode;
}[];
type ReactStringReplaceProps = {
rules: ReactStringReplaceRules;
children: string | React.ReactNode[];
};
function ReactStringReplace(props: ReactStringReplaceProps): JSX.Element;
export {
reactStringReplace,
ReactStringReplace,
ReactStringReplaceProps,
ReactStringReplaceRules,
};
}