Rename types.js -> Seconds.ts
This commit is contained in:
parent
46b2c1198f
commit
6170796433
|
|
@ -1,5 +1,5 @@
|
|||
import { IntervalType } from "./parser/tokenizer";
|
||||
import { Seconds } from "./types";
|
||||
import { Seconds } from "./Seconds";
|
||||
|
||||
export type Workout = {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { Interval } from "./ast";
|
||||
import { detectRepeats } from "./detectRepeats";
|
||||
import { Seconds } from "./types";
|
||||
import { Seconds } from "./Seconds";
|
||||
|
||||
describe("detectRepeats()", () => {
|
||||
it("does nothing with empty array", () => {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { eqProps, flatten, zip } from "ramda";
|
||||
import { Interval, Comment } from "./ast";
|
||||
import { Seconds } from "./types";
|
||||
import { Seconds } from "./Seconds";
|
||||
|
||||
export type RepeatedInterval = {
|
||||
type: "repeat";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Interval, Workout, Comment } from "../ast";
|
||||
import { Seconds } from "../types";
|
||||
import { Seconds } from "../Seconds";
|
||||
import { ParseError } from "./ParseError";
|
||||
import { SourceLocation, Token } from "./tokenizer";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { map, sum } from "ramda";
|
||||
import { Interval } from "../ast";
|
||||
import { Seconds } from "../types";
|
||||
import { Seconds } from "../Seconds";
|
||||
|
||||
export const totalDuration = (intervals: Interval[]): Seconds =>
|
||||
new Seconds(sum(map((interval) => interval.duration.value, intervals)));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { Interval } from "../ast";
|
||||
import { Seconds } from "../types";
|
||||
import { Seconds } from "../Seconds";
|
||||
|
||||
// Training Stress Score formula from Training and Racing with a Power Meter:
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Seconds } from "../types";
|
||||
import { Seconds } from "../Seconds";
|
||||
|
||||
// Training Stress Score formula from Training and Racing with a Power Meter:
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue