uptime/index.ts

13 lines
269 B
TypeScript
Raw Normal View History

2024-07-21 18:41:56 -04:00
import * as S from "fp-ts/String";
import * as M from "fp-ts/Map";
import { getMonoid } from "fp-ts/lib/Array";
enum DurationUnit {
MILLISECOND = "ms",
SECOND = "sec",
MINUTE = "min",
HOUR = "hr",
}
const unitMap = M.fromFoldable(S.Ord, getMonoid<String>());