diff --git a/src/utils/__tests__/getFlowType-test.js b/src/utils/__tests__/getFlowType-test.js index dd357e0bfb9..6c1bc81e4b7 100644 --- a/src/utils/__tests__/getFlowType-test.js +++ b/src/utils/__tests__/getFlowType-test.js @@ -28,6 +28,7 @@ describe('getFlowType', () => { 'boolean', 'any', 'mixed', + 'null', 'void', 'Object', 'Function', diff --git a/src/utils/getFlowType.js b/src/utils/getFlowType.js index 414481cec16..c50b87a4029 100644 --- a/src/utils/getFlowType.js +++ b/src/utils/getFlowType.js @@ -33,6 +33,7 @@ const flowTypes = { AnyTypeAnnotation: 'any', BooleanTypeAnnotation: 'boolean', MixedTypeAnnotation: 'mixed', + NullLiteralTypeAnnotation: 'null', NumberTypeAnnotation: 'number', StringTypeAnnotation: 'string', VoidTypeAnnotation: 'void',