-
-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Packer.pack and Packer.toArrayBuffer (#2959)
* Add Packer.pack and Packer.toArrayBuffer To mirror patchDocument's outputType parameter. See #2920 * Ignore coverage --------- Co-authored-by: Dolan Miu <[email protected]>
- Loading branch information
Showing
4 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* v8 ignore start */ | ||
// Simply type definitions. Can ignore testing and coverage | ||
// From JSZip | ||
export type OutputByType = { | ||
readonly base64: string; | ||
// eslint-disable-next-line id-denylist | ||
readonly string: string; | ||
readonly text: string; | ||
readonly binarystring: string; | ||
readonly array: readonly number[]; | ||
readonly uint8array: Uint8Array; | ||
readonly arraybuffer: ArrayBuffer; | ||
readonly blob: Blob; | ||
readonly nodebuffer: Buffer; | ||
}; | ||
|
||
export type OutputType = keyof OutputByType; | ||
/* v8 ignore stop */ |