@graphql-codegen/cli
Version:
10 lines (9 loc) • 440 B
text/typescript
import { Types } from '@graphql-codegen/plugin-helpers';
import { CodegenContext } from './config.cjs';
/**
* 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>;