Skip to content

PairSpec

A paired rest: two separate rest periods that together count as one, when all three floors hold. { eachAtLeast: "PT2H", oneAtLeast: "PT7H", combinedAtLeast: "PT10H" } accepts 7.5 + 2.5 hours and 8 + 2, and refuses 6 + 4.

import type { PairSpec } from "@northguild/gmt";
MemberTypeDescription
eachAtLeaststringThe floor on each of the two periods, a positive ISO 8601 duration of exact time.
oneAtLeaststringThe floor on the longer period, a positive ISO 8601 duration of exact time.
combinedAtLeaststringThe floor on the two periods added together, a positive ISO 8601 duration of exact time.
type PairSpec = {
/** The floor on each of the two periods, a positive ISO 8601 duration of exact time. */
eachAtLeast: string;
/** The floor on the longer period, a positive ISO 8601 duration of exact time. */
oneAtLeast: string;
/** The floor on the two periods added together, a positive ISO 8601 duration of exact time. */
combinedAtLeast: string;
};

types/duty.ts