Microsoft/TypeScript

Change type of `File` constructor parameter `fileBits` to `Iterable<BlobPart>`

Open

#57,520 opened on Feb 24, 2024

View on GitHub
 (0 comments) (1 reaction) (0 assignees)TypeScript (6,726 forks)batch import
BugDomain: lib.d.tsHelp Wanted

Repository metrics

Stars
 (48,455 stars)
PR merge metrics
 (Avg merge 6d 17h) (9 merged PRs in 30d)

Description

⚙ Compilation target

es2022

⚙ Library

es2022, dom

Missing / Incorrect Definition

type of the parameter fileBits of the File constructor.

Sample Code

new File((function * () { yield "a" })(), "name")

Documentation Link

https://developer.mozilla.org/en-US/docs/Web/API/File/File#filebits

Contributor guide