Mayson Monorepo Documentation
    Preparing search index...
    Fetcher: <T>(endpoint: string, method: HttpMethod, body?: object) => Promise<T>

    Generic fetcher function type

    Type Declaration

      • <T>(endpoint: string, method: HttpMethod, body?: object): Promise<T>
      • Type Parameters

        • T

        Parameters

        • endpoint: string
        • method: HttpMethod
        • Optionalbody: object

        Returns Promise<T>