@gqty/cli
Version:
## Visit [https://gqty.dev/docs/cli/codegen](https://gqty.dev/docs/cli/codegen)
13 lines (12 loc) • 420 B
TypeScript
import type { GraphQLSchema } from 'graphql';
export interface IntrospectionOptions {
/**
* Endpoint of the remote GraphQL API or schema file
*/
endpoint?: string;
/**
* Specify headers for the introspection
*/
headers?: Record<string, string>;
}
export declare const getRemoteSchema: (endpoint: string, { headers }?: Pick<IntrospectionOptions, 'headers'>) => Promise<GraphQLSchema>;