Skip to content

Commit 0fa71de

Browse files
authored
fix(flow): support empty type (#431)
1 parent 68503d8 commit 0fa71de

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
@@ -19,6 +19,7 @@ describe('getFlowType', () => {
1919
'mixed',
2020
'null',
2121
'void',
22+
'empty',
2223
'Object',
2324
'Function',
2425
'Boolean',

src/utils/getFlowType.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const flowTypes = {
3232
NumberTypeAnnotation: 'number',
3333
StringTypeAnnotation: 'string',
3434
VoidTypeAnnotation: 'void',
35+
EmptyTypeAnnotation: 'empty',
3536
};
3637

3738
const flowLiteralTypes = {

0 commit comments

Comments
 (0)