Interface: UseCooldownOptions
Defined in: use-cooldown.ts:6
Options for useCooldown.
Properties
autoStart?
optionalautoStart?:boolean
Defined in: use-cooldown.ts:8
Begin the countdown on mount instead of waiting for start. Default is false.
onComplete?
optionalonComplete?: () =>void
Defined in: use-cooldown.ts:10
Called when a countdown reaches 0 on its own. Not called by reset.
Returns
void