Skip to content

Commit

Permalink
Mark ky.create() options as optional in public types (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkluijk committed Sep 2, 2024
1 parent a7e2736 commit 8d2ca91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/types/ky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export type KyInstance = {
@returns A new Ky instance.
*/
create: (defaultOptions: Options) => KyInstance;
create: (defaultOptions?: Options) => KyInstance;

/**
Create a new Ky instance with some defaults overridden with your own.
Expand Down

0 comments on commit 8d2ca91

Please sign in to comment.