UNPKG

@gqty/cli

Version:

Interactive codegen for GQty

13 lines (12 loc) 420 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: string, { headers }?: Pick<IntrospectionOptions, "headers">) => Promise<GraphQLSchema>;