@kermank/slots
Version:
A TypeScript library for handling time slots, scheduling, and timezone operations
16 lines (15 loc) • 720 B
TypeScript
import { Slot, SlotOperator } from '../types';
/**
* Creates an operator that adds slots to the collection
*/
export declare const addSlots: (newSlots: Slot | Slot[]) => SlotOperator<Slot[]>;
/**
* Creates an operator that removes slots that match exactly (same start and end times)
* For removing overlapping slots, use removeOverlappingSlots from slot-set-operations
*/
export declare const removeExactSlots: (slotsToRemove: Slot | Slot[]) => SlotOperator<Slot[]>;
export declare const removeSlots: (slotsToRemove: Slot | Slot[]) => SlotOperator<Slot[]>;
/**
* Creates an operator that updates a slot in the collection
*/
export declare const updateSlot: (oldSlot: Slot, newSlot: Slot) => SlotOperator<Slot[]>;