interface / @typed/vue

RefSubjectState

Public interface exposed as RefSubjectState from @typed/vue.

Package version
1.0.0-beta.13
Category
interface

Import

import { RefSubjectState } from "@typed/vue";

Signatures

export interface RefSubjectState<A, E> extends AsyncState<A, E> {
    readonly current: WritableComputedRef<A | undefined, A>;
    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