vtils

Home > react > UseControllableValueResult

UseControllableValueResult type

Signature:

export declare type UseControllableValueResult<TProps, TValuePropName extends keyof TProps, TCallbackPropName extends keyof TProps, TDefaultValue extends TProps[TValuePropName]> = [
    TDefaultValue extends undefined ? TProps[TValuePropName] : Defined<TProps[TValuePropName]>,
    Defined<TProps[TCallbackPropName]>,
    () => void
];