UNPKG

@kermank/slots

Version:

A TypeScript library for handling time slots, scheduling, and timezone operations

7 lines (6 loc) 221 B
import { Slot } from './slot'; /** * A rule is a function that takes slots and returns forbidden slots * The forbidden slots will be subtracted from the input slots */ export type SlotRule = (slots: Slot[]) => Slot[];