@vhidvz/wfjs
    Preparing search index...

    Class State<V>

    Type Parameters

    • V = any
    Index

    Constructors

    Properties

    name?: string
    ref: string
    status: Status = Status.Ready
    value?: V

    Methods

    • This function clones the current state object by serializing and deserializing it.

      Parameters

      • -: { value: boolean } = ...

        The clone function takes an optional object parameter

      Returns State<V>

      The clone method is returning a new instance of the State class

    • It returns an object with the properties ref, name, status, and value.

      Parameters

      • options: { value: boolean } = ...

        value: true

      Returns { name?: string; ref: string; status: Status; value?: V }

      An object with the ref, name, status, and value properties.

    • It returns a new instance of the State class, with the ref and options parameters passed to the constructor

      Type Parameters

      • V = any

      Parameters

      • ref: string

        The name of the state.

      • options: { name?: string; status?: Status; value?: V }

        options

      Returns State<V>

      A new instance of the State class.