From f01e23cfc6dc96625c74e1c599c837359fe8f52f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Thu, 10 Oct 2024 16:29:25 +0200 Subject: [PATCH] fix: Add stub ReadableStream declaration --- src/FileLike.ts | 9 +++++++++ 1 file changed, 9 insertions(+) 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.