interface Stores {
    detached: (() => Stores);
    isStorable: ((specimen: unknown) => boolean);
    mapStore: ((label: string, options?: StoreOptions) => MapStore<any, any>);
    setStore: (<K>(label: string, options?: StoreOptions) => SetStore<K>);
    weakMapStore: (<K, V>(label: string, options?: StoreOptions) => WeakMapStore<K, V>);
    weakSetStore: (<K>(label: string, options?: StoreOptions) => WeakSetStore<K>);
}

Properties

detached: (() => Stores)

obtain store providers which are detached (the stores are anonymous rather than bound to label in the zone)

isStorable: ((specimen: unknown) => boolean)

return true if the specimen can be stored in the zone, whether as exo-object state or in a store

mapStore: ((label: string, options?: StoreOptions) => MapStore<any, any>)

provide a Map-like store named label in the zone

setStore: (<K>(label: string, options?: StoreOptions) => SetStore<K>)

provide a Set-like store named label in the zone

weakMapStore: (<K, V>(label: string, options?: StoreOptions) => WeakMapStore<K, V>)

provide a WeakMap-like store named label in the zone

weakSetStore: (<K>(label: string, options?: StoreOptions) => WeakSetStore<K>)

provide a WeakSet-like store named label in the zone