parent
4795bb3cbc
commit
078b5c1a3a
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
export enum Method {
|
export enum Method {
|
||||||
|
HEAD = 'HEAD',
|
||||||
GET = 'GET',
|
GET = 'GET',
|
||||||
PUT = 'PUT',
|
PUT = 'PUT',
|
||||||
POST = 'POST',
|
POST = 'POST',
|
||||||
|
@ -11,4 +12,4 @@ export type Endpoint<P = void> = Readonly<{
|
||||||
method: Method;
|
method: Method;
|
||||||
url: string | ((params: P) => string);
|
url: string | ((params: P) => string);
|
||||||
headers?: Record<string, string>;
|
headers?: Record<string, string>;
|
||||||
}>
|
}>
|
||||||
|
|
Reference in a new issue