Skip to content

Commit 3fa6771

Browse files
ahutchingsdanez
authored andcommitted
Support flow NullLiteralTypeAnnotation node type (#299)
1 parent 924d3a7 commit 3fa6771

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/utils/__tests__/getFlowType-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('getFlowType', () => {
2828
'boolean',
2929
'any',
3030
'mixed',
31+
'null',
3132
'void',
3233
'Object',
3334
'Function',

src/utils/getFlowType.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const flowTypes = {
3333
AnyTypeAnnotation: 'any',
3434
BooleanTypeAnnotation: 'boolean',
3535
MixedTypeAnnotation: 'mixed',
36+
NullLiteralTypeAnnotation: 'null',
3637
NumberTypeAnnotation: 'number',
3738
StringTypeAnnotation: 'string',
3839
VoidTypeAnnotation: 'void',

0 commit comments

Comments
 (0)