UNPKG

@gqty/cli

Version:

## Visit [https://gqty.dev/docs/cli/codegen](https://gqty.dev/docs/cli/codegen)

6 lines (5 loc) 472 B
import { type GraphQLSchema } from 'graphql'; import { type GQtyConfig } from './config'; import { type TransformSchemaOptions } from './generate'; export type OnExistingFileConflict = ((existingFile: string) => void | Promise<void>) | undefined; export declare function writeGenerate(schema: GraphQLSchema, destinationPath: string, configuration: GQtyConfig, onExistingFileConflict?: OnExistingFileConflict, transformsGenerate?: TransformSchemaOptions): Promise<string>;