From 52996b9692e0ea80ed3e8b89c84df1c72ef25874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erlend=20=C3=85mdal?= Date: Tue, 23 Aug 2022 17:08:14 +0200 Subject: [PATCH] Fix JSZip.folder does not return null --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index b1c93082..ab9a6a53 100644 --- a/index.d.ts +++ b/index.d.ts @@ -240,9 +240,9 @@ interface JSZip { * Returns an new JSZip instance with the given folder as root * * @param name Name of the folder - * @return New JSZip object with the given folder as root or null + * @return New JSZip object with the given folder as root */ - folder(name: string): JSZip | null; + folder(name: string): JSZip; /** * Returns new JSZip instances with the matching folders as root