trello-for-wolves
Version:
Node.js wrapper for Trello API...for wolves.
13 lines (12 loc) • 487 B
TypeScript
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>>;