From f346fa9e91c7ee23c3931d142e0c8581bfe4a925 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 6 Jun 2023 22:07:39 +0200 Subject: [PATCH] refine types --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index 7154cf4..15bc2a0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -79,8 +79,8 @@ export function mergeFetchOptions( input: FetchOptions | undefined, defaults: FetchOptions | undefined, Headers = globalThis.Headers -): Record { - const merged = { +): FetchOptions { + const merged: FetchOptions = { ...defaults, ...input, };