graphql-yoga
Version:
5 lines (4 loc) • 303 B
text/typescript
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>;