diff options
Diffstat (limited to 'src/hooks/useRequests.tsx')
| -rw-r--r-- | src/hooks/useRequests.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/hooks/useRequests.tsx b/src/hooks/useRequests.tsx index 108232f..526e0a6 100644 --- a/src/hooks/useRequests.tsx +++ b/src/hooks/useRequests.tsx | |||
| @@ -2,7 +2,16 @@ import { useCallback, useEffect, useMemo, useState } from "react"; | |||
| 2 | import { getHost } from "../utils"; | 2 | import { getHost } from "../utils"; |
| 3 | 3 | ||
| 4 | export type Headers = [string, string][]; | 4 | export type Headers = [string, string][]; |
| 5 | export type Method = "GET" | "POST" | "PUT" | "DELETE" | "PATCH"; | 5 | export type Method = |
| 6 | | "GET" | ||
| 7 | | "HEAD" | ||
| 8 | | "POST" | ||
| 9 | | "PUT" | ||
| 10 | | "DELETE" | ||
| 11 | | "CONNECT" | ||
| 12 | | "OPTIONS" | ||
| 13 | | "TRACE" | ||
| 14 | | "PATCH"; | ||
| 6 | 15 | ||
| 7 | export interface RequestPayload { | 16 | export interface RequestPayload { |
| 8 | id: string; | 17 | id: string; |
