Skip to content

Commit 8d2ca91

Browse files
authoredSep 2, 2024··
Mark ky.create() options as optional in public types (#628)
1 parent a7e2736 commit 8d2ca91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎source/types/ky.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export type KyInstance = {
7474
7575
@returns A new Ky instance.
7676
*/
77-
create: (defaultOptions: Options) => KyInstance;
77+
create: (defaultOptions?: Options) => KyInstance;
7878

7979
/**
8080
Create a new Ky instance with some defaults overridden with your own.

0 commit comments

Comments
 (0)
Please sign in to comment.