From 5f6e66d5dec7e2de1999a978a43acb202ae86d6e Mon Sep 17 00:00:00 2001 From: Mike Marcacci Date: Wed, 27 Mar 2019 12:22:22 -0700 Subject: [PATCH] The linter only works in CI... --- types/graphql-api-koa/graphql-api-koa-tests.ts | 0 types/graphql-api-koa/index.d.ts | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 types/graphql-api-koa/graphql-api-koa-tests.ts 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;