From 57404673e7f031a73d1cf23501e6fa8d89759769 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Sat, 18 Mar 2023 16:15:35 +0330 Subject: [PATCH] fix(fetch): bodyJson type --- core/fetch/src/type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/fetch/src/type.ts b/core/fetch/src/type.ts index 28e78fbc2..9bf7a8860 100644 --- a/core/fetch/src/type.ts +++ b/core/fetch/src/type.ts @@ -1,4 +1,4 @@ -import type {Methods, QueryParameters} from '@alwatr/type'; +import type {Methods, QueryParameters, StringifyableRecord} from '@alwatr/type'; export type CacheStrategy = | 'network_only' @@ -91,7 +91,7 @@ export interface FetchOptions extends RequestInit { /** * Body as JS Object. */ - bodyJson?: Record; + bodyJson?: StringifyableRecord; /** * URL Query Parameters as JS Object.