interface / @typed/react

RefSubjectState

Public interface exposed as RefSubjectState from @typed/react.

Package version
1.0.0-beta.13
Category
interface

Import

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

Signatures

export interface RefSubjectState<A, E> extends 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