shopify-storefront
Version:
Wrapper for the Shopify's Storefront API.
10 lines • 424 B
TypeScript
import GraphQLRequest from './interfaces/GraphQLRequest';
export declare class GraphQLClient {
private readonly endpoint;
private readonly headers;
constructor(endpoint: string);
setHeader(key: string, value: string): void;
fetch(request: GraphQLRequest, variables?: Record<string, unknown>): Promise<Record<string, unknown>>;
}
export default GraphQLClient;
//# sourceMappingURL=client.d.ts.map