Skip to content

Commit 69f44b9

Browse files
committed
Fix type issues
1 parent 8394ac1 commit 69f44b9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"files.exclude": {
1313
"**/.git": true,
1414
"**/.DS_Store": true,
15-
"node_modules": false,
15+
"node_modules": true,
1616
"test-lib": true,
1717
"lib": true,
1818
"coverage": true,

packages/stitch/src/mergeCandidates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ function mergeInterfaceTypeCandidates<TContext = Record<string, any>>(
198198

199199
const description = mergeTypeDescriptions(candidates, typeMergingOptions);
200200
const fields = fieldConfigMapFromTypeCandidates(candidates, typeMergingOptions);
201-
const typeConfigs = candidates.map(candidate => (candidate.type as GraphQLInterfaceType).toConfig());
201+
const typeConfigs = candidates.map(candidate => candidate.type.toConfig());
202202
const interfaceMap = typeConfigs
203-
.map(typeConfig => typeConfig.interfaces)
203+
.map(typeConfig => ('interfaces' in typeConfig ? typeConfig.interfaces : []))
204204
.reduce<Record<string, GraphQLInterfaceType>>((acc, interfaces) => {
205205
if (interfaces != null) {
206206
for (const iface of interfaces) {

0 commit comments

Comments
 (0)