@apollo-orbit/angular
Version:
A full-featured GraphQL client for Angular
15 lines (11 loc) • 406 B
TypeScript
import { HttpClient } from '@angular/common/http';
interface HttpConfig {
[key: string]: any;
method: string;
headers?: Record<string, string>;
credentials?: RequestCredentials;
signal?: AbortSignal | null;
}
declare const makeFetch: (httpClient: HttpClient) => (url: string, { method, ...config }: HttpConfig) => Promise<Response>;
export { makeFetch };
export type { HttpConfig };