Skip to content

Commit

Permalink
Fix type regression
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmev committed Mar 21, 2024
1 parent 051d7ab commit 6547420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/types/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ Normalized options passed to the `fetch` call and the `beforeRequest` hooks.
export interface NormalizedOptions extends RequestInit { // eslint-disable-line @typescript-eslint/consistent-type-definitions -- This must stay an interface so that it can be extended outside of Ky for use in `ky.create`.
// Extended from `RequestInit`, but ensured to be set (not optional).
method: NonNullable<RequestInit['method']>;
credentials: RequestInit['credentials'];
credentials?: NonNullable<RequestInit['credentials']>;

// Extended from custom `KyOptions`, but ensured to be set (not optional).
retry: RetryOptions;
Expand Down

0 comments on commit 6547420

Please sign in to comment.