Skip to main content

StateSchemas

@rotorsoft/act-root


@rotorsoft/act-root / act/src / StateSchemas

Type Alias: StateSchemas<TState, TEvents, TActions>

StateSchemas<TState, TEvents, TActions> = object

Defined in: libs/act/src/types/action.ts:339

Bundles the Zod types for state, events, and actions.

Type Parametersโ€‹

TStateโ€‹

TState extends Schema

State schema.

TEventsโ€‹

TEvents extends Schemas

Event schemas.

TActionsโ€‹

TActions extends Schemas

Action schemas.

Propertiesโ€‹

actionsโ€‹

readonly actions: ZodTypes<TActions>

Defined in: libs/act/src/types/action.ts:345


eventsโ€‹

readonly events: ZodTypes<TEvents>

Defined in: libs/act/src/types/action.ts:344


stateโ€‹

readonly state: ZodType<TState>

Defined in: libs/act/src/types/action.ts:346