Skip to content

Commit

Permalink
fix(types): add missing cache prop to RequestInit
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal committed Sep 9, 2024
1 parent dca0aa0 commit 038cb7a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 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
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
dispatcher?: Dispatcher
duplex?: RequestDuplex
}

export type ReferrerPolicy =
Expand Down

0 comments on commit 038cb7a

Please sign in to comment.