@gqty/cli
Version:
Interactive codegen for GQty
17 lines (16 loc) • 725 B
TypeScript
import type { GraphQLSchema } from 'graphql';
import type { GQtyConfig } from '../../config';
export declare class FetchError extends Error {
readonly request: RequestInit;
readonly response: Response;
readonly name = "FetchError";
constructor(request: RequestInit, response: Response);
}
export type FetchSchemasOptions = {
headers?: HeadersInit;
headersByEndpoint?: GQtyConfig['introspections'];
silent?: boolean;
};
export declare function fetchSchema(endpoint: string, options?: FetchSchemasOptions): Promise<GraphQLSchema>;
export declare function fetchSchema(endpoint: string[], options?: FetchSchemasOptions): Promise<GraphQLSchema>;
export declare const isURL: (input: string) => boolean;