Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 14 lines · 333 B · at 2cc04ee

import { type Option, type Result } from "@tsus/runtime";export type Interval = { start: number; end: number };export type SlotError = { kind: "invalid_input" };export const findFreeSlot = (  busy: Interval[],  dayStart: number,  dayEnd: number,  durationMin: number,): Result<Option<number>, SlotError> => {  // TODO};