File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 11export = UuidEncoder ;
22declare class UuidEncoder {
3- private static resolveEncodingStr ;
4- static isCaseSensitiveBase ( baseEncodingStr : string ) : boolean ;
5- constructor ( baseEncodingStr ?: string ) ;
6- setBaseEncodingStr ( baseEncodingStr : string ) : void ;
7- encStr : string ;
8- isCaseSensitive : boolean ;
9- base : number ;
10- encode ( uuid : string ) : string ;
11- decode ( str : string ) : string ;
12- }
3+ private static resolveEncodingStr ;
4+ static isCaseSensitiveBase ( baseEncodingStr : string ) : boolean ;
5+ constructor ( baseEncodingStr ?: string ) ;
6+ setBaseEncodingStr ( baseEncodingStr : string ) : void ;
7+ encStr : string ;
8+ isCaseSensitive : boolean ;
9+ base : number ;
10+ encode ( uuid : string ) : string ;
11+ decode ( str : string ) : string ;
12+ }
Original file line number Diff line number Diff line change 11import UuidEncoder from "uuid-encoder" ;
22
33// $ExpectType UuidEncoder
4- const encoder = new UuidEncoder ( ' base36' ) ;
4+ const encoder = new UuidEncoder ( " base36" ) ;
55
66// $ExpectType string
7- const encodedUuid = encoder . encode ( ' 38b9823d-fa1a-48e7-91fc-ee16ad091cf2' ) ;
7+ const encodedUuid = encoder . encode ( " 38b9823d-fa1a-48e7-91fc-ee16ad091cf2" ) ;
88
99// $ExpectType string
1010const decodedUuid = encoder . decode ( encodedUuid ) ;
11-
12-
You can’t perform that action at this time.
0 commit comments