We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bd09d1 commit e4ce3f6Copy full SHA for e4ce3f6
src/utils/getFlowType.js
@@ -273,15 +273,15 @@ function getFlowTypeWithResolvedTypes(path: NodePath): FlowTypeDescriptor {
273
}
274
275
276
+ if (!type) {
277
+ type = { name: 'unknown' };
278
+ }
279
+
280
if (isTypeAlias) {
281
// mark the type as unvisited so that further calls can resolve the type again
282
visitedTypes[path.parentPath.node.id.name] = type;
283
284
- if (!type) {
- type = { name: 'unknown' };
- }
-
285
return type;
286
287
0 commit comments