Skip to content

Commit

Permalink
Remove private property from TS definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuk committed Apr 19, 2020
1 parent 20ad7aa commit e5747c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.d.ts
Expand Up @@ -45,14 +45,15 @@ interface OutputByType {
nodebuffer: Buffer;
}


interface CompressedObject {
compressedSize: number;
uncompressedSize: number;
crc32: number;
compression: object;
compressedContent: string|ArrayBuffer|Uint8Array|Buffer;
}
// This private `_data` property on a JSZipObject uses this interface.
// If/when it is made public this should be uncommented.
// interface CompressedObject {
// compressedSize: number;
// uncompressedSize: number;
// crc32: number;
// compression: object;
// compressedContent: string|ArrayBuffer|Uint8Array|Buffer;
// }

type InputFileFormat = InputByType[keyof InputByType];

Expand All @@ -72,7 +73,6 @@ declare namespace JSZip {
dosPermissions: number | null;
options: JSZipObjectOptions;

_data: CompressedObject;
/**
* Prepare the content in the asked type.
* @param type the type of the result.
Expand Down

0 comments on commit e5747c9

Please sign in to comment.