Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
docs: 📚️ add comments to types
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Dec 28, 2023
1 parent fa9910e commit d3c26f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/types/types/courses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ export type Course = {
*/
terms: string[];
/**
*
* The previews for the instructors that have taught this course in the past.
*/
instructors: InstructorPreview[];
/**
*
* The previews for the courses that are required to take this course.
*/
prerequisites: CoursePreview[];
/**
*
* The previews for the courses that require this course.
*/
dependencies: CoursePreview[];
};
Expand Down
5 changes: 4 additions & 1 deletion packages/types/types/instructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type Instructor = {
*/
courseHistory: Record<string, string[]>;
/**
*
* The previews for the course(s) this instructor has taught in the past.
*/
courses: CoursePreview[];
};
Expand All @@ -56,4 +56,7 @@ export type Instructor = {
*/
export type Instructors = Instructor[];

/**
* An object that contains a subset of an instructor's metadata, for preview purposes.
*/
export type InstructorPreview = Pick<Instructor, "ucinetid" | "name" | "shortenedName">;

0 comments on commit d3c26f8

Please sign in to comment.