UNPKG

@gqty/cli

Version:

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

32 lines (31 loc) 895 B
import type { GenerateOptions, TransformSchemaOptions } from './generate'; export declare function inspectWriteGenerate({ endpoint, destination, generateOptions, cli, headers, transformSchemaOptions, }?: { /** * GraphQL API endpoint or GraphQL Schema file * * @example 'http://localhost:3000/graphql' * @example './schema.gql' */ endpoint?: string; /** * File path destination * @example './src/gqty/index.ts' */ destination?: string; /** * Specify generate options */ generateOptions?: GenerateOptions; /** * Whether it's being called through the CLI */ cli?: boolean; /** * Specify headers for the introspection HTTP request */ headers?: Record<string, string>; /** * Specify schema transforms */ transformSchemaOptions?: TransformSchemaOptions; }): Promise<void>;