[READ-ONLY] Mirror of https://github.com/lukebennett88/luke-ui. ui.lukebennett.dev

Let composeField own the field slot interface (#65) master

Four prop interfaces (FieldProps, TextFieldProps, ComboboxFieldProps, and the inline quartet in compose-field.ts own FieldSlotProps) each hand-typed the same label/description/errorMessage/necessityIndicator props with duplicate JSDoc. This makes all three consumer interfaces extend FieldSlotProps from compose-field.ts, so the slot interface and its runtime split travel together. The necessityIndicator default JSDoc moves to FieldSlotProps.


+10 -37
4 changed files