diff --git a/index.d.ts b/index.d.ts index 4141473..b4b0b03 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,9 @@ -declare module 'react-string-replace' { +declare module "react-string-replace" { function reactStringReplace( - text?: string | React.ReactNodeArray, - regex?: string | RegExp, + text?: string | React.ReactNode[], + regex?: string | RegExp, cb?: (match: string, index: number, offset: number) => React.ReactNode - ): React.ReactNodeArray; + ): React.ReactNode[]; export default reactStringReplace; }