Type Alias: Catalog
Documentation / @xmachines/play-xstate / Catalog
type Catalog = Catalog | Record<string, CatalogEntry>;Defined in: packages/play-xstate/src/catalog/types.ts:28
Component catalog mapping
Re-export from @xmachines/play-catalog for consistent API.
Supports two formats:
- Direct Zod schemas:
Record<string, z.ZodType>via defineCatalog() - CatalogEntry objects:
Record<string, CatalogEntry>with { schema, component }
PlayerActor accepts either format - if entry has ‘schema’ property, uses CatalogEntry pattern, otherwise treats as direct Zod schema.