UNPKG

trello-for-wolves

Version:
13 lines (12 loc) 487 B
import { AnyParams, TrelloConfig, TypedResponse } from "../typeDefs"; export declare type HttpMethod = "GET" | "PUT" | "POST" | "DELETE"; /** * Returns a resolved Promise with the results of the Trello API call. * @private */ export declare function fetchFromApi<T>({ endpoint, trelloConfig, fetchConfig, paramsByName, }: { endpoint: string; trelloConfig: TrelloConfig; fetchConfig?: RequestInit | null; paramsByName?: AnyParams | null; }): Promise<TypedResponse<T>>;