UNPKG

@siren-js/client

Version:
19 lines (18 loc) 499 B
import { Href, Target } from './utils'; export interface FollowOptions { /** * Base URL used to resolve relative URIs */ baseUrl?: Href; /** * Request options */ requestInit?: RequestInit; } /** * Follows `target` by making an HTTP `GET` request. * @param target request target * @param options configuration object * @returns HTTP response of following `target` */ export declare function follow(target: Target, options?: FollowOptions): Promise<Response>;