JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 19
  • Score
    100M100P100Q58879F
  • License MIT

TypeScript definitions for graphql-api-koa

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/graphql-api-koa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    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.