diff --git a/types/graphql-api-koa/graphql-api-koa-tests.ts b/types/graphql-api-koa/graphql-api-koa-tests.ts index 6998d739ed..4f8ddca3df 100644 --- a/types/graphql-api-koa/graphql-api-koa-tests.ts +++ b/types/graphql-api-koa/graphql-api-koa-tests.ts @@ -1,27 +1,3 @@ -import { GraphQLSchema, GraphQLObjectType, GraphQLString } from "graphql"; -import { execute } from "graphql-api-koa"; - -execute({ - schema: new GraphQLSchema({ - query: new GraphQLObjectType({ - name: "Query", - fields: () => ({ - hello: { - type: GraphQLString, - resolve() { - return "world"; - } - } - }) - }) - }) -}); - -/* This is the thest that SHOULD exist here... but for whatever reason, the - DefinitelyTyped repo always errors with: - - Module '"/Users/mike/Code/DefinitelyTyped/types/koa/index"' has no default export. - import Koa from "koa"; import { GraphQLSchema, GraphQLObjectType, GraphQLString } from "graphql"; import { errorHandler, execute } from "graphql-api-koa"; @@ -43,4 +19,3 @@ const app = new Koa() }) }) })); -*/ diff --git a/types/graphql-api-koa/tsconfig.json b/types/graphql-api-koa/tsconfig.json index ff6126ad74..88980bdfc7 100644 --- a/types/graphql-api-koa/tsconfig.json +++ b/types/graphql-api-koa/tsconfig.json @@ -14,7 +14,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts",