UNPKG

graphql-yoga

Version:

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

10 lines (9 loc) 404 B
import { PromiseOrValue } from '@envelop/core'; import { GraphQLParams } from '../types.cjs'; import { Plugin } from './types.cjs'; interface RequestParserPluginOptions { match?(request: Request): boolean; parse(request: Request): PromiseOrValue<GraphQLParams> | PromiseOrValue<GraphQLParams[]>; } export declare function useRequestParser(options: RequestParserPluginOptions): Plugin; export {};