Interface EntryDataOnprogressOptions

Represents options passed to Entry#getData, ZipWriter.add and {@link ZipDirectory}.export*.

interface EntryDataOnprogressOptions {
    onend?(computedSize): Promise<void>;
    onprogress?(progress, total): Promise<void>;
    onstart?(total): Promise<void>;
}

Hierarchy (view full)

Methods

  • The function called when ending compression/decompression.

    Parameters

    • computedSize: number

      The total number of bytes (computed).

    Returns Promise<void>

    An empty promise or undefined.

  • The function called during compression/decompression.

    Parameters

    • progress: number

      The current progress in bytes.

    • total: number

      The total number of bytes.

    Returns Promise<void>

    An empty promise or undefined.

  • The function called when starting compression/decompression.

    Parameters

    • total: number

      The total number of bytes.

    Returns Promise<void>

    An empty promise or undefined.

Generated using TypeDoc