Time options use four names today: wait, delay, timeThreshold and throttleMs. Putting the unit in the name makes each option self-explanatory, and #530 already uses debounceMs, throttleMs and delayMs for the callback and interval hooks.
Rename the remaining options:
useLongPress: delay → delayMs
useImpressionRef and ImpressionArea: timeThreshold → timeThresholdMs
useAvoidKeyboard: transitionDuration → transitionDurationMs
useDebouncedValue: wait → debounceMs
useThrottledValue: wait → throttleMs
useTimeout: delay → delayMs
The first three are option keys and break existing code. The last three are positional parameters, so only types and docs change. useDoubleClick is covered in #535. Update types, docs, and tests.
Waits for #530 and #531.
Time options use four names today:
wait,delay,timeThresholdandthrottleMs. Putting the unit in the name makes each option self-explanatory, and #530 already usesdebounceMs,throttleMsanddelayMsfor the callback and interval hooks.Rename the remaining options:
useLongPress:delay→delayMsuseImpressionRefandImpressionArea:timeThreshold→timeThresholdMsuseAvoidKeyboard:transitionDuration→transitionDurationMsuseDebouncedValue:wait→debounceMsuseThrottledValue:wait→throttleMsuseTimeout:delay→delayMsThe first three are option keys and break existing code. The last three are positional parameters, so only types and docs change.
useDoubleClickis covered in #535. Update types, docs, and tests.Waits for #530 and #531.