-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: try splitting out types from default export
- Loading branch information
1 parent
ff39a68
commit 59c6d89
Showing
4 changed files
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export interface RequestInitWithDuplex extends RequestInit { | ||
/** | ||
* `RequestInit#duplex` does not yet exist in the TS `lib.dom.d.ts` definition yet the native | ||
* fetch implementation in Node 18+, `undici`, requires it for certain POST payloads. | ||
* | ||
* @see {@link https://github.com/microsoft/TypeScript-DOM-lib-generator/issues/1483} | ||
* @see {@link https://github.com/nodejs/node/issues/46221} | ||
* @see {@link https://fetch.spec.whatwg.org/#request-class} | ||
* @see {@link https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts} | ||
*/ | ||
duplex?: 'half'; | ||
} | ||
|
||
export interface FetchHAROptions { | ||
files?: Record<string, Blob | Buffer>; | ||
init?: RequestInitWithDuplex; | ||
userAgent?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters