Skip to content

time

time(durationMs, fn, options?): Promise<void>

Defined in: time.ts:60

Remaps the wrapped section to exactly durationMs at render time (compressing or stretching it): time(1000, fn).

The duration is web-editable: an editor override applies at the next record and shadows the code value with a warning. The block’s stable identity slug comes from the editId option (stamped automatically when missing).

number

() => void | Promise<void>

TimelineBlockOptions

Promise<void>