UNPKG

@virtualstate/examples

Version:
19 lines 710 B
import { EnableThen, VNode } from "@virtualstate/fringe"; import { ReadOptions, VNodeSource } from "./read"; declare type DomainMap<T extends VNodeSource> = Map<T["source"], Set<T>>; export interface StoreOptions<T extends VNodeSource> extends ReadOptions<T> { defaults?: DomainMap<T>; } export declare const Delivery: unique symbol; export declare class Store<T extends VNodeSource> { #private; static [EnableThen]: boolean; constructor(options: StoreOptions<T>, state?: VNode); get(key: T["source"] | T): Set<T>; [Symbol.asyncIterator](): AsyncGenerator<{ reference: symbol; source: DomainMap<T>; }, void, unknown>; } export {}; //# sourceMappingURL=store.d.ts.map