UNPKG

graphql-yoga

Version:

<div align="center"><img src="./website/public/cover.png" width="720" /></div>

17 lines (16 loc) 620 B
import { GetEnvelopedFn } from '@envelop/core'; import { OnResultProcess, ResultProcessorInput } from './plugins/types.js'; import { FetchAPI, GraphQLParams } from './types.js'; export declare function processResult({ request, result, fetchAPI, onResultProcessHooks, }: { request: Request; result: ResultProcessorInput; fetchAPI: FetchAPI; /** * Response Hooks */ onResultProcessHooks: OnResultProcess[]; }): Promise<Response>; export declare function processRequest({ params, enveloped, }: { params: GraphQLParams; enveloped: ReturnType<GetEnvelopedFn<unknown>>; }): Promise<any>;