Type Parameters

Hierarchy (View Summary)

Constructors

  • Type Parameters

    • T extends object = object

    Parameters

    • obj: T

    Returns PayloadHasher<T>

Properties

obj: T
allowHashPooling: boolean
allowSubtle: boolean
createBrowserWorker?: (url?: URL) => undefined | Worker
createNodeWorker: (func?: () => unknown) => undefined | WorkerImplementation
initialized: void
subtleHashWorkerUrl?: URL
warnIfUsingJsHash: boolean
wasmHashWorkerUrl?: URL
wasmInitialized: Promise<void>
wasmSupport: WasmSupport

Accessors

  • get stringKeyObj(): StringKeyObject
  • Returns StringKeyObject

Methods

  • Returns Promise<Lowercase<string>>

  • Parameters

    • Optionalmeta: boolean

    Returns T

  • Parameters

    • Optionalurl: URL
    • Optionalfunc: () => unknown

    Returns Worker

  • Type Parameters

    • T extends object

    Parameters

    • objs: undefined | T[]
    • hash: Lowercase<string> | Lowercase<string>[]

    Returns Promise<T[]>

  • Type Parameters

    • T extends object

    Parameters

    • objs: undefined | T[]
    • hash: Lowercase<string> | Lowercase<string>[]

    Returns Promise<T[]>

  • Type Parameters

    • T extends object

    Parameters

    • objs: undefined | T[]
    • hash: Lowercase<string>

    Returns Promise<undefined | T>

  • Type Parameters

    • T extends object

    Parameters

    • obj: T

    Returns Promise<Lowercase<string>>

  • Type Parameters

    • T extends object

    Parameters

    • Optionalobjs: T[]

    Returns Promise<undefined | Lowercase<string>[]>

  • Type Parameters

    • T extends object

    Parameters

    • obj: T

    Returns T

  • Type Parameters

    • T extends object

    Parameters

    • objs: T[]

    Returns Promise<[T, Lowercase<string>][]>

  • Type Parameters

    • T extends object

    Parameters

    • payload: T
    • Optionalmeta: boolean

    Returns T

  • Type Parameters

    • T extends object

    Parameters

    • payload: T
    • Optionalmeta: boolean

    Returns T

  • Type Parameters

    • T extends object

    Parameters

    • obj: T

    Returns string

  • Parameters

    • data: Uint8Array

    Returns Promise<ArrayBuffer>

  • Parameters

    • data: string

    Returns Promise<any>