Skip to content

Commit

Permalink
Created missing declaration file
Browse files Browse the repository at this point in the history
Restructured declaration exposure via typings folder
Switched back to tsc and ts-jest as swc is not able to generate declarations
bump version to 3.1.3
  • Loading branch information
maugenst committed Sep 22, 2023
1 parent 19e108f commit 256cb45
Show file tree
Hide file tree
Showing 16 changed files with 369 additions and 2,652 deletions.
16 changes: 12 additions & 4 deletions dist/ZipAFolder.d.ts → @typings/ZipAFolder.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
/// <reference types="node" />
import { WriteStream } from 'fs';
import {WriteStream} from 'fs';
export declare enum COMPRESSION_LEVEL {
uncompressed = 0,
medium = 5,
high = 9
high = 9,
}
export type ZipAFolderOptions = {
compression?: COMPRESSION_LEVEL;
customWriteStream?: WriteStream;
destPath?: string;
};
export declare class ZipAFolder {
static tar(src: string, tarFilePath: string | undefined, zipAFolderOptions?: ZipAFolderOptions): Promise<void | Error>;
static zip(src: string, zipFilePath: string | undefined, zipAFolderOptions?: ZipAFolderOptions): Promise<void | Error>;
static tar(
src: string,
tarFilePath: string | undefined,
zipAFolderOptions?: ZipAFolderOptions,
): Promise<void | Error>;
static zip(
src: string,
zipFilePath: string | undefined,
zipAFolderOptions?: ZipAFolderOptions,
): Promise<void | Error>;
private static compress;
}
export declare const zip: typeof ZipAFolder.zip;
Expand Down
Loading

0 comments on commit 256cb45

Please sign in to comment.