Skip to content

Commit

Permalink
fix: types: add missing cache prop to RequestInit
Browse files Browse the repository at this point in the history
Also sort the props.
  • Loading branch information
rindeal authored Sep 9, 2024
1 parent dca0aa0 commit ab6026c
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions types/fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,21 @@ type RequestDestination =
| 'xslt'

export interface RequestInit {
method?: string
keepalive?: boolean
headers?: HeadersInit
body?: BodyInit | null
redirect?: RequestRedirect
integrity?: string
signal?: AbortSignal | null
credentials?: RequestCredentials
mode?: RequestMode
referrer?: string
referrerPolicy?: ReferrerPolicy
window?: null
dispatcher?: Dispatcher
duplex?: RequestDuplex
body?: BodyInit | null
cache?: RequestCache
credentials?: RequestCredentials
dispatcher?: Dispatcher
duplex?: RequestDuplex
headers?: HeadersInit
integrity?: string
keepalive?: boolean
method?: string
mode?: RequestMode
redirect?: RequestRedirect
referrer?: string
referrerPolicy?: ReferrerPolicy
signal?: AbortSignal | null
window?: null
}

export type ReferrerPolicy =
Expand Down

0 comments on commit ab6026c

Please # to comment.