Interface IStore<TProps, TValues>

Defines shape of the store.

interface IStore<TProps, TValues> {
    props: TProps;
    values: TValues;
}

Type Parameters

  • TProps extends Type

    Store props and methods, defines basic shape of the store.

  • TValues extends Type = Type

    Store values, defines required values for the store (provided when using a store).

Properties

Properties

props: TProps

Props are the core parts of a store (internal implementation).

values: TValues

Values are required to be passed to the store.