Skip to main content
Version: Current

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

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


events​

readonly events: ZodTypes<TEvents>

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


state​

readonly state: ZodType<TState>

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