diff --git a/src/FileLike.ts b/src/FileLike.ts index a4b1757..2346805 100644 --- a/src/FileLike.ts +++ b/src/FileLike.ts @@ -1,3 +1,12 @@ +/** + * Declare DOM interfaces in case dom.d.ts is not added to the tsconfig lib, causing + * interfaces to not be defined. For developers with dom.d.ts added, the interfaces will + * be merged correctly. + */ +declare global { + export interface ReadableStream {} +} + export interface FileLike { /** * Name of the file referenced by the File object.