From 7ec9d8fbbf0361138932bf4b13ccae68ab4efe74 Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Wed, 12 Feb 2020 17:30:57 +0000 Subject: [PATCH] fix(flow): support empty type --- src/utils/__tests__/getFlowType-test.js | 1 + src/utils/getFlowType.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/utils/__tests__/getFlowType-test.js b/src/utils/__tests__/getFlowType-test.js index 971a99a838a..367c974ecb4 100644 --- a/src/utils/__tests__/getFlowType-test.js +++ b/src/utils/__tests__/getFlowType-test.js @@ -19,6 +19,7 @@ describe('getFlowType', () => { 'mixed', 'null', 'void', + 'empty', 'Object', 'Function', 'Boolean', diff --git a/src/utils/getFlowType.js b/src/utils/getFlowType.js index 9d0eeca66e7..5eb1ad7ff7c 100644 --- a/src/utils/getFlowType.js +++ b/src/utils/getFlowType.js @@ -32,6 +32,7 @@ const flowTypes = { NumberTypeAnnotation: 'number', StringTypeAnnotation: 'string', VoidTypeAnnotation: 'void', + EmptyTypeAnnotation: 'empty', }; const flowLiteralTypes = {