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

Properties

detached: (() => Stores)

Type declaration

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

      Returns Stores

isStorable: ((specimen) => boolean)

Type declaration

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

      Parameters

      • specimen: unknown

      Returns boolean

mapStore: (<K, V>(label, options?) => MapStore<K, V>)

Type declaration

    • <K, V>(label, options?): MapStore<K, V>
    • provide a Map-like store named label in the zone

      Type Parameters

      • K

      • V

      Parameters

      Returns MapStore<K, V>

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

Type declaration

    • <K>(label, options?): SetStore<K>
    • provide a Set-like store named label in the zone

      Type Parameters

      • K

      Parameters

      Returns SetStore<K>

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

Type declaration

    • <K, V>(label, options?): WeakMapStore<K, V>
    • provide a WeakMap-like store named label in the zone

      Type Parameters

      • K

      • V

      Parameters

      Returns WeakMapStore<K, V>

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

Type declaration

    • <K>(label, options?): WeakSetStore<K>
    • provide a WeakSet-like store named label in the zone

      Type Parameters

      • K

      Parameters

      Returns WeakSetStore<K>

Generated using TypeDoc