Dmitriy Pleshevskiy
49aac94675
chore: add dist folder to repo chore(deps): add node-fetch for tests chore: change prepare request visibility chore: add tests for prepare request method chore: update example Closes #20
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
export declare enum Method {
|
|
HEAD = "HEAD",
|
|
GET = "GET",
|
|
PUT = "PUT",
|
|
POST = "POST",
|
|
PATCH = "PATCH",
|
|
DELETE = "DELETE"
|
|
}
|
|
export declare type Endpoint<R, V, P = void> = Readonly<{
|
|
method: Method;
|
|
url: string | ((params: P) => string);
|
|
headers?: Record<string, string>;
|
|
transformResponseData?: (data: any) => R;
|
|
}>;
|