Skip to content

Commit

Permalink
Merge pull request #39 from jakemmarsh/patch-1
Browse files Browse the repository at this point in the history
Add Typescript definition file
  • Loading branch information
iansinnott authored Jan 21, 2019
2 parents ec60eed + 6c71cd4 commit 094814d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'react-string-replace' {
function reactStringReplace(text: React.ReactNode, regex: RegExp, cb: (match: string, index: number) => string | JSX.Element): JSX.Element;

export default reactStringReplace;
}

0 comments on commit 094814d

Please sign in to comment.