The bundle headers provide access to the bundle manifest metadata keys.

interface BundleHeaders {
    asMap(): BundleManifestEntries;
    entries: BundleManifestEntries;
    get<T = unknown>(key: string): T;
}

Properties

Methods

Properties

Provides direct access to the header information of a bundle as flat object. This field is read only. Please do not change the entries as a side effect!

Methods

  • Get the value for a metadata key.

    Type Parameters

    • T = unknown

    Parameters

    Returns T

    the value