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:258

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:264


events

readonly events: ZodTypes<TEvents>

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


state

readonly state: ZodType<TState>

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