Skip to main content Link Search Menu Expand Document (external link)

Progress overview

Added in v1.0.0


Table of contents


utils

Progress

Signature

export declare function Progress(loaded: bigint, total: Option.Option<bigint> = Option.none()): Progress

Added in v1.0.0

Progress (interface)

Signature

export interface Progress {
  readonly loaded: bigint
  readonly total: Option.Option<bigint>
}

Added in v1.0.0

equals

Signature

export declare const equals: Equivalence.Equivalence<Progress>

Added in v1.0.0

make

Signature

export declare const make: (loaded: bigint, total?: bigint | null) => Progress

Added in v1.0.0

pretty

Signature

export declare function pretty(progress: Progress): string

Added in v1.0.0

setLoaded

Signature

export declare const setLoaded: {
  (loaded: bigint): (progress: Progress) => Progress
  (progress: Progress, loaded: bigint): Progress
}

Added in v1.0.0

setTotal

Signature

export declare const setTotal: {
  (total: bigint): (progress: Progress) => Progress
  (progress: Progress, total: bigint): Progress
}

Added in v1.0.0