import type { CollectionSchemaBase } from './dsl.js'; import type { DtoField } from './dto.js'; /** Data carried by a component event (e.g. e.detail from a Tab onChange). */ export interface EventDataSchema extends CollectionSchemaBase { type: 'event'; fields: Record; } export function defineEventData(name: string, fields: Record): EventDataSchema { return { name, type: 'event', fields }; }