This repository was archived by the owner on Jul 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,14 @@ var TypeKind = {
21
21
22
22
This : 10 ,
23
23
Undefined : 11 ,
24
- Union : 12 ,
25
- Intersection : 13 ,
26
- Tuple : 14 ,
27
- Indexed : 15 ,
28
- Operator : 16 ,
24
+ Null : 12 ,
25
+ Union : 13 ,
26
+ Intersection : 14 ,
27
+ Tuple : 15 ,
28
+ Indexed : 16 ,
29
+ Operator : 17 ,
29
30
30
- Unknown : 17 ,
31
+ Unknown : 18 ,
31
32
} ;
32
33
33
34
module . exports = TypeKind ;
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ function DocVisitor(source) {
273
273
switch ( node . kind ) {
274
274
case ts . SyntaxKind . NeverKeyword :
275
275
return {
276
- k : TypeKind . NeverKeyword ,
276
+ k : TypeKind . Never ,
277
277
} ;
278
278
case ts . SyntaxKind . AnyKeyword :
279
279
return {
@@ -283,6 +283,10 @@ function DocVisitor(source) {
283
283
return {
284
284
k : TypeKind . Unknown ,
285
285
} ;
286
+ case ts . SyntaxKind . NullKeyword :
287
+ return {
288
+ k : TypeKind . Null ,
289
+ } ;
286
290
case ts . SyntaxKind . ThisType :
287
291
return {
288
292
k : TypeKind . This ,
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ var TypeDef = React.createClass({
97
97
return this . wrap ( 'primitive' , 'any' ) ;
98
98
case TypeKind . This :
99
99
return this . wrap ( 'primitive' , 'this' ) ;
100
+ case TypeKind . Null :
101
+ return this . wrap ( 'primitive' , 'null' ) ;
100
102
case TypeKind . Undefined :
101
103
return this . wrap ( 'primitive' , 'undefined' ) ;
102
104
case TypeKind . Boolean :
You can’t perform that action at this time.
0 commit comments