File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 "author" : " Tasti Zakarie" ,
77 "license" : " MIT" ,
88 "main" : " dist/index.js" ,
9+ "types" : " src/index.d.ts" ,
910 "repository" : {
1011 "type" : " git" ,
1112 "url" : " https://github.com/tasti/react-linkify.git"
Original file line number Diff line number Diff line change 1+ import * as React from "react" ;
2+
3+ export interface Match {
4+ index : number ;
5+ lastIndex : number ;
6+ text : string ;
7+ url : string ;
8+ }
9+
10+ export interface LinkifyProps {
11+ children : React . ReactNode ;
12+ componentDecorator ?: (
13+ decoratedHref : string ,
14+ decoratedText : string ,
15+ key : number
16+ ) => React . ReactNode ;
17+ hrefDecorator ?: ( text : string ) => string ;
18+ matchDecorator ?: ( text : string ) => Match [ ] ;
19+ textDecorator ?: ( text : string ) => string ;
20+ }
21+
22+ export default class Linkify extends React . Component < LinkifyProps , { } > { }
You can’t perform that action at this time.
0 commit comments