File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 1
1
// TypeScript Version: 3.5
2
2
3
- import { Node } from 'unist' ;
4
- import { Test } from 'unist-util-is' ;
3
+ import { Node } from 'unist'
4
+ import { Test } from 'unist-util-is'
5
5
6
6
declare namespace remove {
7
7
interface RemoveOptions {
8
8
/**
9
9
* Whether to drop parent nodes if they had children, but all their children were filtered out test
10
10
*/
11
- cascade ?: boolean ;
11
+ cascade ?: boolean
12
12
}
13
13
}
14
14
@@ -20,14 +20,11 @@ declare namespace remove {
20
20
* @param options Whether to drop parent nodes if they had children, but all their children were filtered out
21
21
* @param test is-compatible test (such as a type)
22
22
*/
23
- declare function remove (
24
- tree : Node ,
25
- test ?: Test < Node >
26
- ) : Node ;
23
+ declare function remove ( tree : Node , test ?: Test < Node > ) : Node
27
24
declare function remove (
28
25
tree : Node ,
29
26
options : remove . RemoveOptions = { cascade : true } ,
30
27
test ?: Test < Node >
31
- ) : Node ;
28
+ ) : Node
32
29
33
- export = remove ;
30
+ export = remove
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " dtslint/dtslint.json" ,
3
+ "rules" : {
4
+ "no-redundant-jsdoc" : false ,
5
+ "no-redundant-jsdoc-2" : true ,
6
+ "semicolon" : false ,
7
+ "whitespace" : false
8
+ }
9
+ }
You can’t perform that action at this time.
0 commit comments