UNPKG

@graphql-tools/utils

Version:

Common package containing utils and types for GraphQL tools

6 lines (5 loc) • 362 B
import type { Source } from './loaders.cjs'; export type LoadErrorHandling = 'throw' | 'aggregate' | 'return'; export declare function toLoadError(error: unknown): Error; export declare function shouldCollectLoadErrors(errorHandling?: LoadErrorHandling): boolean; export declare function createFailedSource(location: string | undefined, error: unknown): Source;