Type Alias: ComponentProperties<TBase, TOverrides>
ComponentProperties<
TBase,TOverrides> =Omit<TBase, keyofTOverrides> &TOverrides
Defined in: shared/types/componentProps.ts:521
Utility type for creating component properties with specific overrides.
Type Parametersโ
TBaseโ
TBase
TOverridesโ
TOverrides = Record<string, unknown>
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
    }
>;