summaryrefslogtreecommitdiffstats
path: root/src/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'src/hooks')
-rw-r--r--src/hooks/useRequests.tsx11
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";
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"; 5export type Method =
6 | "GET"
7 | "HEAD"
8 | "POST"
9 | "PUT"
10 | "DELETE"
11 | "CONNECT"
12 | "OPTIONS"
13 | "TRACE"
14 | "PATCH";
6 15
7export interface RequestPayload { 16export interface RequestPayload {
8 id: string; 17 id: string;