Skip to content

Commit ab356ee

Browse files
committed
fix(introspection): improve typing
1 parent d9da41f commit ab356ee

File tree

2 files changed

+5
-87
lines changed

2 files changed

+5
-87
lines changed

src/introspection/introspection.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
SimplifiedType,
2323
SimplifiedInputField,
2424
SimplifiedField,
25-
} from "./types.js";
25+
} from "../types.js";
2626
import { typeNameToId } from "./utils.js";
2727

2828
function unwrapType(type) {
@@ -215,5 +215,8 @@ export function getSchema(schema: GraphQLSchema) {
215215
const simpleSchema = simplifySchema(schema);
216216
assignTypesAndIDs(simpleSchema);
217217
addParent(simpleSchema);
218-
return simpleSchema;
218+
219+
// Force cast to the correct type
220+
// FIXME: This is not the right way of doing it
221+
return simpleSchema as any as SimplifiedIntrospectionWithIds;
219222
}

src/introspection/types.ts

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)