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

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


events

readonly events: ZodTypes<TEvents>

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


state

readonly state: ZodType<TState>

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