UNPKG

dcl-catalyst-client

Version:

A client to query and perform changes on Decentraland's catalyst servers

13 lines 529 B
import { IFetchComponent } from '@well-known-components/interfaces'; type Context = { url: string; method: 'get' | 'post' | 'put' | 'delete' | 'patch'; params?: any; data?: any; responseType?: string; headers?: Record<string, string>; }; export type CustomClient<T> = (baseUrl: string, fetch: IFetchComponent) => Promise<T>; export declare const useCustomClient: <T>({ url, method, params, data, headers }: Context) => CustomClient<T>; export default useCustomClient; //# sourceMappingURL=fetcher.d.ts.map