UNPKG

1.1 kBTypeScriptView Raw
1import { Source, UniversalLoader, DocumentPointerSingle, SchemaPointerSingle, SingleFileOptions } from '@graphql-tools/utils';
2export interface GraphQLFileLoaderOptions extends SingleFileOptions {
3 skipGraphQLImport?: boolean;
4}
5export declare class GraphQLFileLoader implements UniversalLoader<GraphQLFileLoaderOptions> {
6 loaderId(): string;
7 canLoad(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): Promise<boolean>;
8 canLoadSync(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): boolean;
9 load(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): Promise<Source>;
10 loadSync(pointer: SchemaPointerSingle | DocumentPointerSingle, options: GraphQLFileLoaderOptions): Source;
11 handleFileContent(rawSDL: string, pointer: string, options: GraphQLFileLoaderOptions): {
12 location: string;
13 document: import("graphql").DocumentNode;
14 rawSDL: string;
15 } | {
16 location: string;
17 document: import("graphql").DocumentNode;
18 };
19}