Skip to content

Commit

Permalink
fix(fetch): bodyJson type
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Mar 18, 2023
1 parent 11f83d4 commit 5740467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/fetch/src/type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Methods, QueryParameters} from '@alwatr/type';
import type {Methods, QueryParameters, StringifyableRecord} from '@alwatr/type';

export type CacheStrategy =
| 'network_only'
Expand Down Expand Up @@ -91,7 +91,7 @@ export interface FetchOptions extends RequestInit {
/**
* Body as JS Object.
*/
bodyJson?: Record<string | number, unknown>;
bodyJson?: StringifyableRecord;

/**
* URL Query Parameters as JS Object.
Expand Down

0 comments on commit 5740467

Please sign in to comment.