forked from nodejs/undici
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixes for `File` and `FormData` types declarations. 1. `FormData`: * Declare class methods as they should be; * Minor fixes for methods documentation in code; * Remove unnecessary constructor declaration; * Remove unnecessary part from FormData class description; 2. `File`: * Replace getters with readonly properties; * Remove `File.stream()` method, because `File` inherits `Blob` which already has this method; * `FileOptions` interface inherits `BlobOptions` from `@types/node` declarations; * Minor fix for File constructor types delcaration: Update fileBits description and rename name to fileName. * Rename arguments in FormData.forEach type declarations. * Rename ctx argument to thisArg in FormData.forEach() method to match MDN documentation.
- Loading branch information
1 parent
4b1c14f
commit 609d89b
Showing
2 changed files
with
38 additions
and
35 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