File tree Expand file tree Collapse file tree 1 file changed +22
-19
lines changed
Expand file tree Collapse file tree 1 file changed +22
-19
lines changed Original file line number Diff line number Diff line change 11// TypeScript Version: 3.0
22
33export interface ASTNode {
4- type : 'root' | 'bracket' ;
5- nodes : ASTNode [ ] ;
6- stash : string [ ] ;
4+ type : 'root' | 'bracket' ;
5+ nodes : ASTNode [ ] ;
6+ stash : string [ ] ;
77}
88
99export interface State {
10- input : string ;
11- separator : string ;
12- stack : ASTNode [ ] ;
13- bos ( ) : boolean ;
14- eos ( ) : boolean ;
15- prev ( ) : string ;
16- next ( ) : string ;
10+ input : string ;
11+ separator : string ;
12+ stack : ASTNode [ ] ;
13+ bos ( ) : boolean ;
14+ eos ( ) : boolean ;
15+ prev ( ) : string ;
16+ next ( ) : string ;
1717}
1818
1919export interface Options {
20- brackets ?: { [ key : string ] : string } | boolean ;
21- quotes ?: string [ ] | boolean ;
22- separator ?: string ;
23- strict ?: boolean ;
24- keep ?( value : string , state : State ) : boolean ;
20+ brackets ?: { [ key : string ] : string } | boolean ;
21+ quotes ?: string [ ] | boolean ;
22+ separator ?: string ;
23+ strict ?: boolean ;
24+ keep ?( value : string , state : State ) : boolean ;
2525}
2626
27- type SplitFunc = ( state : State ) => boolean ;
27+ export type SplitFunc = ( state : State ) => boolean ;
2828
29- declare function split ( input : string , options ?: Options | SplitFunc ) : string [ ] ;
30- declare function split ( input : string , options : Options , fn : SplitFunc ) : string [ ] ;
29+ declare module 'split-string' {
3130
32- export default split ;
31+ declare function split ( input : string , options ?: Options | SplitFunc ) : string [ ] ;
32+ declare function split ( input : string , options : Options , fn : SplitFunc ) : string [ ] ;
33+
34+ export = split ;
35+ }
You can’t perform that action at this time.
0 commit comments