import { User } from '../../User/User.entity' ; import { Leave } from '../Leave.entity' ; export interface ILeaveRepository { save ( leave ) : void ; findMonthlyLeaves ( date , userId ) : Promise < Leave [ ] > ; countLeavesByUserAndPeriod ( user , startDate , endDate ) : Promise < number > ; sumOfDurationLeaveByUserAndDate ( user , date ) : Promise < number > ; }