@gqty/cli
Version:
## Visit [https://gqty.dev/docs/cli/codegen](https://gqty.dev/docs/cli/codegen)
16 lines (15 loc) • 628 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?: Record<string, string>;
headersByEndpoint?: GQtyConfig['introspections'];
silent?: boolean;
};
export declare const fetchSchemas: (endpoints: string[], options: FetchSchemasOptions) => Promise<GraphQLSchema>;
export declare const isURL: (input: string) => boolean;