@svta/common-media-library
    Preparing search index...

    Type Alias CmcdEncodeOptionsBeta

    Options for encoding CMCD values.

    type CmcdEncodeOptions = {
        baseUrl?: string;
        customHeaderMap?: CmcdHeadersMap;
        filter?: (key: CmcdKey) => boolean;
        formatters?: Record<CmcdKey, CmcdFormatter>;
    }
    Index

    Properties

    baseUrl?: string

    The base URL to use for relative URLs.

    customHeaderMap?: CmcdHeadersMap

    A map of CMCD header fields to custom CMCD keys.

    filter?: (key: CmcdKey) => boolean

    A filter function for CMCD keys.

    Type declaration

      • (key: CmcdKey): boolean
      • Parameters

        • key: CmcdKey

          The CMCD key to filter.

        Returns boolean

        true if the key should be included, false otherwise.

    formatters?: Record<CmcdKey, CmcdFormatter>

    A map of CMCD keys to custom formatters.