UNPKG

@gqty/cli

Version:

Interactive codegen for GQty

21 lines (20 loc) 517 B
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 of the remote GraphQL API */ endpoint: string, /** * Specify options for the introspection */ { headers }?: Pick<IntrospectionOptions, "headers">) => Promise<GraphQLSchema>;