File tree Expand file tree Collapse file tree 5 files changed +238
-146
lines changed Expand file tree Collapse file tree 5 files changed +238
-146
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export interface Item {
4
4
[ key : string ] : any ;
5
5
}
6
6
export interface TreeItem {
7
- data : Item ;
7
+ data : Item | null ;
8
8
children : TreeItem [ ] ;
9
9
}
10
10
export interface Config {
Original file line number Diff line number Diff line change 9
9
"license" : " MIT" ,
10
10
"dependencies" : {},
11
11
"devDependencies" : {
12
- "@types/chai" : " ^3.5.2 " ,
12
+ "@types/chai" : " ^4.0.4 " ,
13
13
"@types/mocha" : " ^2.2.41" ,
14
- "chai" : " ^3.5.0 " ,
14
+ "chai" : " ^4.1.2 " ,
15
15
"coveralls" : " ^2.13.1" ,
16
16
"istanbul" : " ^0.4.5" ,
17
17
"mocha" : " ^3.3.0" ,
18
18
"mocha-lcov-reporter" : " ^1.3.0" ,
19
19
"remap-istanbul" : " ^0.9.5" ,
20
20
"tslint" : " ^5.2.0" ,
21
- "tslint-config-standard" : " ^5 .0.2 " ,
21
+ "tslint-config-standard" : " ^6 .0.1 " ,
22
22
"typescript" : " ^2.3.2" ,
23
- "uglify-js" : " ^2.8.23 "
23
+ "uglify-js" : " ^3.1.1 "
24
24
},
25
25
"scripts" : {
26
26
"preversion" : " yarn && npm run lint && npm run build && npm run test-and-send-cov-to-coveralls" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface Item {
5
5
}
6
6
7
7
export interface TreeItem {
8
- data : Item
8
+ data : Item | null
9
9
children : TreeItem [ ]
10
10
}
11
11
Original file line number Diff line number Diff line change 6
6
"sourceMap" : true ,
7
7
"moduleResolution" : " node" ,
8
8
"outDir" : " build" ,
9
- "declaration" : true
9
+ "declaration" : true ,
10
+ "strictNullChecks" : true
10
11
},
11
12
"exclude" : [
12
13
" node_modules" ,
You can’t perform that action at this time.
0 commit comments