UNPKG

@gdwc/drupal-state

Version:

A simple data store to manage application state sourced from Drupal's JSON:API.

14 lines (11 loc) 515 B
import * as http from 'http'; import { ServerResponse } from 'http'; /** * fetch data from a JSON:API endpoint * @param apiUrl the api url for the JSON:API endpoint * @param requestInit fetch initialization object * @param _res response object * @returns a promise containing the data for the JSON:API response */ declare const defaultFetch: (apiUrl: RequestInfo, requestInit?: {}, _res?: boolean | ServerResponse<http.IncomingMessage> | undefined) => Promise<Response>; export { defaultFetch as default };