Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 0d60f87

Browse files
committed
fix type emission
1 parent b892ceb commit 0d60f87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/TypeScriptGenerator.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,11 @@ function createVisitor(options: TypeGeneratorOptions): IRVisitor.NodeVisitor {
437437
])
438438
: baseType;
439439

440-
return [...getEnumDefinitions(state), exportType(node.name, type)];
440+
return [
441+
...getEnumDefinitions(state),
442+
...getFragmentDeclarations(state),
443+
exportType(node.name, type)
444+
];
441445
},
442446
InlineFragment(node) {
443447
const typeCondition = node.typeCondition;

0 commit comments

Comments
 (0)