Skip to main content

Type Alias: SnapRule

SnapRule = (zone, at) => Instant

Defined in: time/snap.ts:34

A consumer's own snap rule (#489): decides exactly where at settles, in zone. The escape hatch for anything a plain TickStep cannot state — business hours only, a fixed list of milestones. Built from the same tools time/ uses for its own tick walk: nextTickBoundary for "the next drawn line", snapInstant for "the nearest one".

Parameters​

zone​

string

at​

Instant

Returns​

Instant