feat(endpoint): add head method

Closes #17
This commit is contained in:
Dmitriy Pleshevskiy 2020-11-20 18:43:00 +03:00
parent 4795bb3cbc
commit 078b5c1a3a
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
export enum Method {
HEAD = 'HEAD',
GET = 'GET',
PUT = 'PUT',
POST = 'POST',
@ -11,4 +12,4 @@ export type Endpoint<P = void> = Readonly<{
method: Method;
url: string | ((params: P) => string);
headers?: Record<string, string>;
}>
}>