UNPKG

@graphql-codegen/cli

Version:
10 lines (9 loc) • 439 B
import { Types } from '@graphql-codegen/plugin-helpers'; import { CodegenContext } from './config.js'; /** * Generates code from the config. Resolves with the generated files. * In watch mode, the promise doesn't resolve until the watcher exits, and it resolves with no value. */ export declare function generate(input: CodegenContext | (Types.Config & { cwd?: string; }), saveToFile?: boolean): Promise<Types.FileOutput[] | void>;