UNPKG

graphql-yoga

Version:
5 lines (4 loc) 303 B
import { GraphQLError } from 'graphql'; import type { Plugin } from '../types'; export declare function getAggregateErrorFromErrors(errors: readonly GraphQLError[]): AggregateError; export declare function useHTTPValidationError<PluginContext extends Record<string, any> = {}>(): Plugin<PluginContext>;