From 1cb7354a27a3ad3cacc240d64d3e08ca15b7ee86 Mon Sep 17 00:00:00 2001 From: Gildas Date: Tue, 30 Apr 2024 00:06:33 +0200 Subject: [PATCH] update doc --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index b8e9623a..5c9b5916 100644 --- a/index.d.ts +++ b/index.d.ts @@ -786,9 +786,9 @@ export interface GetEntriesOptions { * * @param value The raw text value. * @param encoding The encoding of the text. - * @returns The decoded text value. + * @returns The decoded text value or `undefined` if the raw text value should be decoded by zip.js. */ - decodeText?(value: Uint8Array, encoding: string): string + decodeText?(value: Uint8Array, encoding: string): string | undefined; } /** @@ -1355,9 +1355,9 @@ export interface ZipWriterConstructorOptions { * Encode the filename and the comment of the entry. * * @param text The text to encode. - * @returns The encoded text. + * @returns The encoded text or `undefined` if the text should be encoded by zip.js. */ - encodeText?(text: string): Uint8Array + encodeText?(text: string): Uint8Array | undefined; } /**