Skip to content

Commit

Permalink
refactor(fetch): use new DictionaryReq type
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Sep 29, 2024
1 parent b3a5c32 commit a8149cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fetch/src/type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Duration} from '@alwatr/parse-duration';
import type {Dictionary, Json, JsonObject} from '@alwatr/type-helper';
import type {DictionaryReq, Json, JsonObject} from '@alwatr/type-helper';

/**
* Represents the available HTTP methods.
Expand Down Expand Up @@ -52,7 +52,7 @@ export interface FetchOptions extends RequestInit {
/**
* A Headers object to set the request's headers.
*/
headers?: Dictionary<string>;
headers?: DictionaryReq<string>;

/**
* A timeout for the fetch request.
Expand Down

0 comments on commit a8149cf

Please sign in to comment.