UNPKG

@nhost/hasura-auth-js

Version:

Hasura-auth client

9 lines (8 loc) 413 B
import { NullableErrorResponse } from '../types'; interface FetchResponse<T> extends NullableErrorResponse { data: T; } export declare const postFetch: <T>(url: string, body: any, token?: string | null, extraHeaders?: HeadersInit) => Promise<FetchResponse<T>>; export declare const getFetch: <T>(url: string, token?: string | null) => Promise<FetchResponse<T>>; export {}; //# sourceMappingURL=fetch.d.ts.map