UNPKG

@los_generic/shared

Version:

Shared DTOs, interfaces, and utilities for LOS applications

21 lines (20 loc) 483 B
export interface FormFieldOption { label: string; value: any; } export interface FormField { name: string; label: string; type: 'text' | 'select' | 'toggle' | 'number' | 'date' | 'checkbox' | 'radio'; placeholder?: string; options?: FormFieldOption[]; selectedOptions?: FormFieldOption[]; required?: boolean; maxLength?: number; default?: any; } export interface FormConfig { name: string; slug: string; fields: FormField[]; }