interface / @typed/react

ActionState

Latest invocation wins; starting another command interrupts the previous one. All calls settle with Exit.

Package version
1.0.0-beta.13
Category
interface

Import

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

Signatures

export interface ActionState<Args extends ReadonlyArray<unknown>, A, E> extends AsyncState<A, E> {
    readonly run: (...args: Args) => Promise<Exit.Exit<A, E>>;
}

Property: run

Latest invocation wins; starting another command interrupts the previous one. All calls settle with Exit.

Other public imports

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

Source