1 | import { Source, BaseLoaderOptions, Loader } from '@graphql-tools/utils';
|
2 | import { GraphQLTagPluckOptions } from '@graphql-tools/graphql-tag-pluck';
|
3 | export declare type CodeFileLoaderConfig = {
|
4 | pluckConfig?: GraphQLTagPluckOptions;
|
5 | noPluck?: boolean;
|
6 | noRequire?: boolean;
|
7 | |
8 |
|
9 |
|
10 | noSilentErrors?: boolean;
|
11 | };
|
12 |
|
13 |
|
14 |
|
15 | export declare type CodeFileLoaderOptions = {
|
16 | require?: string | string[];
|
17 | } & CodeFileLoaderConfig & BaseLoaderOptions;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare class CodeFileLoader implements Loader<CodeFileLoaderOptions> {
|
33 | private config;
|
34 | constructor(config?: CodeFileLoaderConfig);
|
35 | private getMergedOptions;
|
36 | canLoad(pointer: string, options: CodeFileLoaderOptions): Promise<boolean>;
|
37 | canLoadSync(pointer: string, options: CodeFileLoaderOptions): boolean;
|
38 | private _buildGlobs;
|
39 | resolveGlobs(glob: string, options: CodeFileLoaderOptions): Promise<string[]>;
|
40 | resolveGlobsSync(glob: string, options: CodeFileLoaderOptions): string[];
|
41 | load(pointer: string, options: CodeFileLoaderOptions): Promise<Source[]>;
|
42 | loadSync(pointer: string, options: CodeFileLoaderOptions): Source[] | null;
|
43 | handleSinglePath(location: string, options: CodeFileLoaderOptions): Promise<Source[]>;
|
44 | handleSinglePathSync(location: string, options: CodeFileLoaderOptions): Source[] | null;
|
45 | }
|