Represents metadata that is aggregated from multiple parts according to the key's reducer
function. A value can be contributed to the aggregated value for a field using an
metadata rule in the schema. There may be multiple rules in a schema that contribute
values to the same MetadataKey of the same field.
API
class MetadataKey<TRead, TWrite, TAcc> { protected constructor(reducer: MetadataReducer<TAcc, TWrite>, create: ((s: Signal<TAcc>) => TRead) | undefined): MetadataKey<TRead, TWrite, TAcc>;}
constructor
MetadataKey<TRead, TWrite, TAcc>Use reducedMetadataKey.
@returns
MetadataKey<TRead, TWrite, TAcc>Jump to details