interface / @typed/svelte/Reactive

RefSubjectStore

A native writable whose transactional writes settle with typed Exit results.

Package version
1.0.0-beta.13
Category
interface

Import

import { RefSubjectStore } from "@typed/svelte/Reactive";

Signatures

export interface RefSubjectStore<A, E, Initial = undefined> extends Readable<A | Initial> {
    readonly state: AsyncState<A, E>;
    readonly set: (value: A) => Promise<Exit.Exit<A, E>>;
    readonly update: (f: (value: A) => A) => Promise<Exit.Exit<A, E>>;
}

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source