tutorbookapp/tutorbook

View on GitHub
lib/api/verify/time-in-availability.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Timeslot } from 'lib/model/timeslot';
import { User } from 'lib/model/user';

/**
 * Verifies that the given times are included within the given people's
 * availability.
 * @param times - An array of timeslots that should be in the people's
 * availability.
 * @param people - The people whose availability should include `times`.
 * @return Nothing; throws an `APIError` if the given `times` are NOT within the
 * given `people`'s availability.
 */
export default function verifyTimesInAvailability(
  time: Timeslot,
  people: User[]
): void {}