You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Options are the same as `window.fetch`, with some exceptions.
29
29
*/
30
-
exporttypeOptions={
30
+
exportinterfaceOptionsextendsOmit<RequestInit,'headers'>{// 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`.
Normalized options passed to the `fetch` call and the `beforeRequest` hooks.
238
238
*/
239
-
exporttypeNormalizedOptions={
239
+
exportinterfaceNormalizedOptionsextendsRequestInit{// 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`.
240
240
// Extended from `RequestInit`, but ensured to be set (not optional).
241
241
method: RequestInit['method'];
242
242
credentials: RequestInit['credentials'];
@@ -245,6 +245,6 @@ export type NormalizedOptions = {
0 commit comments