@types/s3-zip
TypeScript icon, indicating that this package has built-in type declarations

3.3.0 • Public • Published

Installation

npm install --save @types/s3-zip

Summary

This package contains type definitions for s3-zip (https://github.com/orangewise/s3-zip).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/s3-zip.

index.d.ts

import { S3Client } from "@aws-sdk/client-s3";
import { Archiver, ArchiverOptions, EntryData, Format } from "archiver";

declare namespace S3Zip {
    interface ArchiveOptions {
        s3?: S3Client;
        region?: string;
        bucket: string;
        debug?: boolean;
        preserveFolderStructure?: boolean;
    }
}

interface S3Zip {
    archive(
        opts: S3Zip.ArchiveOptions,
        folder: string | undefined,
        filesS3: string[],
        filesZip?: EntryData[],
    ): Archiver;

    setFormat(format: Format): this;

    setArchiverOptions(archiverOpts: ArchiverOptions): this;

    // eslint-disable-next-line @typescript-eslint/ban-types -- Function
    setRegisterFormatOptions(registerFormat: string, formatModule: Function): this;
}

declare const S3Zip: S3Zip;

export = S3Zip;

Additional Details

Credits

These definitions were written by Janick.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/s3-zip

Weekly Downloads

373

Version

3.3.0

License

MIT

Unpacked Size

4.34 kB

Total Files

5

Last publish

Collaborators

  • types