Variable fetcherConst

fetcher: {
    delete: <T>(pathname: string, options?: Options) => Promise<T>;
    get: <T>(pathname: string, options?: Options) => Promise<T>;
    post: <T>(pathname: string, options?: Options) => Promise<T>;
    put: <T>(pathname: string, options?: Options) => Promise<T>;
} = ...

Type declaration

  • delete: <T>(pathname: string, options?: Options) => Promise<T>
  • get: <T>(pathname: string, options?: Options) => Promise<T>
  • post: <T>(pathname: string, options?: Options) => Promise<T>
  • put: <T>(pathname: string, options?: Options) => Promise<T>