TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

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

Open bug-brain opened this issue 1 year ago • 0 comments

⚙ 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

bug-brain avatar Feb 24 '24 13:02 bug-brain