UNPKG

graphql-yoga

Version:
10 lines (9 loc) 419 B
import type { PromiseOrValue } from '@envelop/core'; import type { GraphQLParams } from '../types.cjs'; import type { 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 {};