diff --git a/types/graphql-api-koa/graphql-api-koa-tests.ts b/types/graphql-api-koa/graphql-api-koa-tests.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/types/graphql-api-koa/index.d.ts b/types/graphql-api-koa/index.d.ts index 4d74a574a5..b1cbae8ecd 100644 --- a/types/graphql-api-koa/index.d.ts +++ b/types/graphql-api-koa/index.d.ts @@ -7,20 +7,20 @@ import { GraphQLSchema } from "graphql"; import { Middleware, ParameterizedContext } from "koa"; -interface ExecuteOptions { +export interface ExecuteOptions { schema?: GraphQLSchema; rootValue?: any; contextValue?: any; fieldResolver?: any; } -export const errorHandler: () => Middleware< +export function errorHandler(): Middleware< StateT, CustomT >; -export const execute: ( +export function execute( options: ExecuteOptions & { override?: (ctx: ParameterizedContext) => ExecuteOptions; } -) => Middleware; +): Middleware;