Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Apr 29, 2024
1 parent 4c99572 commit 1cb7354
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 1cb7354

Please sign in to comment.