UNPKG

606 BTypeScriptView Raw
1/// <reference types="@types/graphql" />
2import { IntrospectionQuery } from 'graphql/utilities/introspectionQuery';
3import { GeneratorTemplate } from './templates';
4export interface TransformedOptions {
5 introspection?: IntrospectionQuery;
6 documents?: string[];
7 template?: GeneratorTemplate;
8 outPath?: string;
9 isDev?: boolean;
10 noSchema?: boolean;
11 noDocuments?: boolean;
12}
13export interface FileResult {
14 path: string;
15 content: string;
16 isDev?: boolean;
17}
18export declare function Transform(transformedOptions: TransformedOptions): FileResult[];
19export default Transform;