summaryrefslogtreecommitdiffstats
path: root/src/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'src/hooks')
-rw-r--r--src/hooks/useRequests.tsx3
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";
2import {getHost} from "../utils"; 2import {getHost} from "../utils";
3 3
4export type Headers = [string, string][] 4export type Headers = [string, string][]
5export type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
5 6
6export interface RequestPayload { 7export 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