@nhtio/lucid-resourceful-vue-components/factories
Helper factories for creating props and emits for Vue components.
Type Aliases
| Type Alias | Description |
|---|---|
| CastToEmitValidators | - |
| EmitHandlerProps | Type helper that generates emit handler prop types from emit validators. Creates both camelCase and kebab-case variants for each emit. |
| ExtractPublicPropTypesFromFactory | - |
| ExtractPublicPropTypesFromUnknownFactory | - |
| ExtractSlotDefinitions | - |
| HookableEvents | Transforms emit validators or emit functions into hookable event types. |
| PropFactory | - |
Functions
| Function | Description |
|---|---|
| emitsFactory | Factory function that converts emit validator functions to Vue-compatible emit functions. |
| getCamelAndMaybeKebabPropKeysFor | - |
| omit | - |
| pick | - |
| propsAndDefaultsFactory | - |
| propsAndEmitsFactory | Factory function that creates both props and emits for Vue components with automatic emit handler prop generation. |
| propsFactory | Creates a factory function for props definitions. This is used to define props in a composable then override default values in an implementing component. |