UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

23 lines (22 loc) 592 B
import type { Connection } from 'mongoose'; import * as factory from '../factory'; /** * スケジュールリポジトリ */ export declare class ScheduleRepo { private readonly scheduleModel; constructor(connection: Connection); findOne(filter: { id?: { $eq?: string; }; project?: { id?: { $eq?: string; }; }; }): Promise<factory.schedule.IEventWithSchedule | null>; findOneId(): Promise<(Pick<factory.schedule.IEventWithSchedule, 'project'> & { id: string; }) | null>; }