R
I

UseTimeAgoOptions

testeddemo

Options for `useTimeAgo`.

Demo

Loading demo…

Signature

ts
interface UseTimeAgoOptions<Controls extends boolean, UnitNames extends string = UseTimeAgoUnitName> extends FormatTimeAgoOptions<UnitNames>

Type Parameters

Controlsextends boolean
UnitNamesextends string= UseTimeAgoUnitName

Properties

PropertyTypeDescription
controls?Controls | undefinedExpose pause/resume controls alongside the time string.
updateInterval?number | undefinedInterval (ms) at which the relative string is recomputed.
immediate?boolean | undefinedStart the update interval immediately.