UNPKG

956 BTypeScriptView Raw
1import { DefinitionsGeneratorOptions, GraphQLAstExplorer } from './graphql-ast.explorer';
2import { GraphQLTypesLoader } from './graphql-types.loader';
3export declare type GenerateOptions = DefinitionsGeneratorOptions & {
4 typePaths: string[];
5 path: string;
6 outputAs?: 'class' | 'interface';
7 watch?: boolean;
8 debug?: boolean;
9 typeDefs?: string | string[];
10};
11export declare class GraphQLDefinitionsFactory {
12 protected readonly gqlAstExplorer: GraphQLAstExplorer;
13 protected readonly gqlTypesLoader: GraphQLTypesLoader;
14 generate(options: GenerateOptions): Promise<void>;
15 protected exploreAndEmit(typePaths: string[], path: string, outputAs: 'class' | 'interface', isDebugEnabled: boolean, definitionsGeneratorOptions: DefinitionsGeneratorOptions, typeDefs?: string | string[]): Promise<void>;
16 protected printMessage(text: string, isEnabled: boolean): void;
17}
18//# sourceMappingURL=graphql-definitions.factory.d.ts.map
\No newline at end of file