Skip to content

Reset

A rest that resets a counter: a run of at least consecutive in any of statuses. The counter starts again where the run ends.

import type { Reset } from "@northguild/gmt";
MemberTypeDescription
statusesS[]The statuses the run is made of. Touching entries in any of them form one run.
consecutivestringHow long the run must be, as a positive ISO 8601 duration of exact time ("PT10H").
type Reset<S extends string = string> = {
/** The statuses the run is made of. Touching entries in any of them form one run. */
statuses: S[];
/** How long the run must be, as a positive ISO 8601 duration of exact time (`"PT10H"`). */
consecutive: string;
};

types/duty.ts