Files
calendar/packages/lib/di/modules/BusyTimes.ts
T

10 lines
419 B
TypeScript

import type { IBusyTimesService } from "../../getBusyTimes";
import { BusyTimesService } from "../../getBusyTimes";
import { createModule } from "../di";
import { DI_TOKENS } from "../tokens";
export const busyTimesModule = createModule();
busyTimesModule.bind(DI_TOKENS.BUSY_TIMES_SERVICE).toClass(BusyTimesService, {
bookingRepo: DI_TOKENS.BOOKING_REPOSITORY,
} satisfies Record<keyof IBusyTimesService, symbol>);