Skip to content

Commit

Permalink
Add null to signal in RequestInit (nodejs#2455)
Browse files Browse the repository at this point in the history
  • Loading branch information
gebsh authored and crysmags committed Feb 27, 2024
1 parent 9d5f534 commit 23455ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/types/fetch.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ expectType<HeadersInit | undefined>(requestInit.headers)
expectType<BodyInit | undefined>(requestInit.body)
expectType<RequestRedirect | undefined>(requestInit.redirect)
expectType<string | undefined>(requestInit.integrity)
expectType<AbortSignal | undefined>(requestInit.signal)
expectType<AbortSignal | null | undefined>(requestInit.signal)
expectType<RequestCredentials | undefined>(requestInit.credentials)
expectType<RequestMode | undefined>(requestInit.mode)
expectType<string | undefined>(requestInit.referrer);
Expand Down
2 changes: 1 addition & 1 deletion types/fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export interface RequestInit {
body?: BodyInit
redirect?: RequestRedirect
integrity?: string
signal?: AbortSignal
signal?: AbortSignal | null
credentials?: RequestCredentials
mode?: RequestMode
referrer?: string
Expand Down

0 comments on commit 23455ba

Please sign in to comment.