Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
feat: FileReader API #6673
Implementation of all of FileReader
Support the old but de-facto standard FileReader API.
Interface based on typescript lib.dom.ts FileReader interface.
FileReader js implementation from notes on https://w3c.github.io/FileAPI/
PR also adds
Updated to use
Okay, but it's not used in runtime anywhere besides 21_filereader.js. If we add more APIs using ProgressEvent then I'll be happy to move it into its own file. I'm not sure why there's
For use in FileReader Based on https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/ProgressEvent and typescript lib.dom.d.ts
FileReader typescript interface taken from typescript lib.dom.ts https://github.com/microsoft/TypeScript/blob/9a5c0074aa64f2a85b425b0e5e6d67c473113693/lib/lib.dom.d.ts#L5502 FileReader js implementation from notes on https://w3c.github.io/FileAPI/ and based on body of deno blob.ts readBytes function.