From 7c48533571e9f9d3731a59433a56cc8d6e008123 Mon Sep 17 00:00:00 2001
From: Tom van der Lee <tom@vanderlee.io>
Date: Sat, 12 Feb 2022 10:59:19 +0100
Subject: Added search and filter options

---
 src/hooks/useRequests.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/hooks/useRequests.tsx')

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";
 import {getHost} from "../utils";
 
 export type Headers = [string, string][]
+export type Method = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
 
 export interface RequestPayload {
   id: string
   body: string
   headers: Headers
-  method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'
+  method: Method
   path: string
 }
 
-- 
cgit v1.2.3

