Type Alias: ComponentProperties<TBase, TOverrides>
ComponentProperties<
TBase,TOverrides> =Merge<TBase,TOverrides>
Defined in: shared/types/componentProps.ts:578
Utility type for creating component properties with specific overrides.
Type Parametersโ
TBaseโ
TBase
TOverridesโ
TOverrides = Record<never, never>
Remarksโ
This utility allows creating component prop interfaces by combining standard interfaces with component-specific overrides.
Exampleโ
type MyButtonProps = ComponentProperties<
StandardButtonProperties,
{
readonly customProp: string;
readonly onClick: () => Promise<void>; // Override default onClick
}
>;