Skip to content

@nhtio/lucid-resourceful-vue-components/factories

Helper factories for creating props and emits for Vue components.

Type Aliases

Type AliasDescription
CastToEmitValidators-
EmitHandlerPropsType helper that generates emit handler prop types from emit validators. Creates both camelCase and kebab-case variants for each emit.
ExtractPublicPropTypesFromFactory-
ExtractPublicPropTypesFromUnknownFactory-
ExtractSlotDefinitions-
HookableEventsTransforms emit validators or emit functions into hookable event types.
PropFactory-

Functions

FunctionDescription
emitsFactoryFactory function that converts emit validator functions to Vue-compatible emit functions.
getCamelAndMaybeKebabPropKeysFor-
omit-
pick-
propsAndDefaultsFactory-
propsAndEmitsFactoryFactory function that creates both props and emits for Vue components with automatic emit handler prop generation.
propsFactoryCreates a factory function for props definitions. This is used to define props in a composable then override default values in an implementing component.