UNPKG

715 BTypeScriptView Raw
1/// <reference types="@types/graphql" />
2/// <reference types="@types/commander" />
3import * as commander from 'commander';
4import { IntrospectionQuery } from 'graphql/utilities/introspectionQuery';
5import { GeneratorTemplate } from './templates';
6export interface TransformedCliOptions {
7 introspection?: IntrospectionQuery;
8 documents?: string[];
9 template?: GeneratorTemplate;
10 outPath?: string;
11 isDev?: boolean;
12}
13export declare const initCLI: (args: any) => commander.IExportedCommand;
14export declare const cliError: (err: string) => void;
15export declare const validateCliOptions: (options: any) => void;
16export declare const transformOptions: (options: any) => Promise<TransformedCliOptions>;