Skip to main content

Fetcher

Index

Constructors

constructor

Properties

delete

get

head

options

patch

post

put

Methods

extends

  • Create a new Fetcher instance with the same configuration


    Parameters

    • path: string

      The path to extend the baseURL with

    • optionaloptions: FetcherOptions

      The options to extend the current options with

    Returns Fetcher

    The new Fetcher instance

request

  • Make a request to the API using the Fetcher instance configuration


    Type parameters

    • T

    Parameters

    • path: string

      The path to make the request to

    • optionaloptions: FetcherRequestOptions

      The options to use for the request

    Returns Promise<T>

    The response data