Skip to content

Commit

Permalink
Fixed type mismatch in oldBuildClientSchema.
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Apr 6, 2019
1 parent f82c450 commit 1d9781e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -33,6 +33,7 @@
"package": "electron-forge package",
"make": "electron-forge make",
"dist-electron": "build",
"test-electron": "npm run build && ./electron/fix-base-path.sh && node electron/__tests__",
"postinstall": "npm run generate-settings-schema-validator && opencollective postinstall",
"lerna-publish": "lerna publish from-git --force-publish=* --yes",
"publish-packages": "npm run build && lerna bootstrap && npm run lerna-publish",
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/gql/oldBuildClientSchema.ts
Expand Up @@ -139,7 +139,7 @@ export function buildClientSchema(
}

function getInputType(typeRef: IntrospectionInputTypeRef): GraphQLInputType {
const type = getType(typeRef);
const type = <GraphQLInputType>getType(typeRef);
invariant(
isInputType(type),
'Introspection must provide input type for arguments.',
Expand All @@ -150,7 +150,7 @@ export function buildClientSchema(
function getOutputType(
typeRef: IntrospectionOutputTypeRef,
): GraphQLOutputType {
const type = getType(typeRef);
const type = <GraphQLOutputType>getType(typeRef);
invariant(
isOutputType(type),
'Introspection must provide output type for fields.',
Expand Down

0 comments on commit 1d9781e

Please sign in to comment.