@types/graphql-api-koa
TypeScript icon, indicating that this package has built-in type declarations

2.0.8 • Public • Published

Installation

npm install --save @types/graphql-api-koa

Summary

This package contains type definitions for graphql-api-koa (https://github.com/jaydenseric/graphql-api-koa#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/graphql-api-koa.

index.d.ts

import { GraphQLSchema } from "graphql";
import { DefaultContext, DefaultState, Middleware, ParameterizedContext } from "koa";

export interface ExecuteOptions {
    schema?: GraphQLSchema | undefined;
    rootValue?: any;
    contextValue?: any;
    fieldResolver?: any;
}

export function errorHandler(): Middleware;

export function execute<StateT = DefaultState, ContextT = DefaultContext>(
    options: ExecuteOptions & {
        override?: ((ctx: ParameterizedContext<StateT, ContextT>) => ExecuteOptions) | undefined;
    },
): Middleware<StateT, ContextT>;

Additional Details

Credits

These definitions were written by Mike Marcacci.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/graphql-api-koa

Weekly Downloads

8

Version

2.0.8

License

MIT

Unpacked Size

3.9 kB

Total Files

5

Last publish

Collaborators

  • types