Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PomoStamp

import { PomoStamp } from "https://raw.githubusercontent.com/EthanThatOneKid/pomo/main/mod.ts";

A PomoStamp is a stamp of a pomo at a given number.

class PomoStamp {
constructor(pomo: Pomo, n: number);
public readonly cycle: number;
public get duration(): number;
public readonly elapsed: number;
public get end(): number;
public readonly period: number;
public readonly remainder: number;
public get work(): boolean;
public get timeout(): number;
public get start(): number;
public get timing(): Timing;
}

§Constructors

§
new PomoStamp(pomo: Pomo, n: number)
[src]

§Properties

§
cycle: number
[src]

The amount of elapsed cycles.

Such that the amount of elapsed periods is equal to: cycle * this.pomo.cycle.total + remainder

§
duration: number readonly
[src]

The duration of the period.

§
elapsed: number
[src]

The amount of elapsed values.

§
end: number readonly
[src]

The end of the period.

§
period: number
[src]

The index of the period in the cycle.

§
remainder: number
[src]

The amount of elapsed periods.

§
work: boolean readonly
[src]

Whether or not the period is a work period.

§
timeout: number readonly
[src]

The number remaining until the next period.

§
start: number readonly
[src]

The start of the period.

§
timing: Timing readonly
[src]