diff options
Diffstat (limited to 'src/hooks')
| -rw-r--r-- | src/hooks/useRequests.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hooks/useRequests.tsx b/src/hooks/useRequests.tsx index 204877a..c3fc2be 100644 --- a/src/hooks/useRequests.tsx +++ b/src/hooks/useRequests.tsx | |||
| @@ -2,12 +2,13 @@ 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 | 6 | ||
| 6 | export interface RequestPayload { | 7 | export interface RequestPayload { |
| 7 | id: string | 8 | id: string |
| 8 | body: string | 9 | body: string |
| 9 | headers: Headers | 10 | headers: Headers |
| 10 | method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 11 | method: Method |
| 11 | path: string | 12 | path: string |
| 12 | } | 13 | } |
| 13 | 14 | ||
