PeriodForm

Type Alias: PeriodForm

PeriodForm = { from: Bound; kind: "bounds"; to: ToBound; zone?: ZoneArgument; } | { argument: string; as: BoundAs; edge?: Edge; joiner: ".." | "/"; kind: "joined"; zone?: ZoneArgument; } | { argument: string; as: BoundAs; edge: Edge; keys: { from: string; to: string; }; kind: "object"; zone?: ZoneArgument; } | { argument: string; kind: "day"; zone?: ZoneArgument; } | { argument: string; kind: "lookback"; signed: boolean; units?: string; }

Defined in: src/core/time/periodForm.ts:85

Every shape a tool's period can take — one TimeRange onto one or more arguments.

Union Members

Type Literal

{ from: Bound; kind: "bounds"; to: ToBound; zone?: ZoneArgument; }


Type Literal

{ argument: string; as: BoundAs; edge?: Edge; joiner: ".." | "/"; kind: "joined"; zone?: ZoneArgument; }


Type Literal

{ argument: string; as: BoundAs; edge: Edge; keys: { from: string; to: string; }; kind: "object"; zone?: ZoneArgument; }

argument

readonly argument: string

as

readonly as: BoundAs

edge

readonly edge: Edge

Declared, never defaulted (TQ18).

keys

readonly keys: object

keys.from

readonly from: string

keys.to

readonly to: string

kind

readonly kind: "object"

zone?

readonly optional zone?: ZoneArgument


Type Literal

{ argument: string; kind: "day"; zone?: ZoneArgument; }


Type Literal

{ argument: string; kind: "lookback"; signed: boolean; units?: string; }

argument

readonly argument: string

kind

readonly kind: "lookback"

signed

readonly signed: boolean

units?

readonly optional units?: string

A unit set ⊆ smhdw; absent → today's mhdw.

On this page