Decoration<AddS extends Record<string, any> = Record<never, never>, AddEM extends EventMapBase = EmptyEventMap>

interface
types.ts:2014

What a decoration contributes to a store: some slices, some events, either possibly empty.

Phantom. Never constructed, and never present at runtime; it exists so a library can state its contribution once and have Decorated and StoreDecorator read it back.

Type parameters

NameTypeDescription
AddSextends Record<string, any>
AddEMextends EventMapBase

Properties

NameTypeDescription
eventsAddEM
slicesAddS