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

feat: ✨ add previews for courses/instructors #404

feat: ✨ add previews for courses/instructors

feat: ✨ add previews for courses/instructors #404

Triggered via pull request December 28, 2023 09:26
Status Failure
Total duration 39s
Artifacts

check-typescript.yml

on: pull_request
Check for TypeScript errors
26s
Check for TypeScript errors
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Check for TypeScript errors: apps/api/src/lib/utils.ts#L64
Type '{ courseLevel: "Lower Division (1-99)" | "Upper Division (100-199)" | "Graduate/Professional Only (200+)"; instructorHistory: string[]; prerequisiteTree: PrerequisiteTree; ... 25 more ...; geText: string; }' is not assignable to type 'Course'.
Check for TypeScript errors: apps/api/src/routes/v1/rest/courses/lib.ts#L39
Type '{ instructorHistory: { array_contains: string[]; }; }[]' is not assignable to type 'CourseWhereInput[]'.
Check for TypeScript errors: apps/api/src/routes/v1/rest/courses/lib.ts#L45
Object literal may only specify known properties, and 'array_contains' does not exist in type 'StringNullableListFilter<"Course">'.
Check for TypeScript errors: apps/api/src/routes/v1/rest/courses/lib.ts#L49
Type '{ terms: { array_contains: string[]; }; }[]' is not assignable to type 'CourseWhereInput[]'.
Check for TypeScript errors: apps/api/src/routes/v1/rest/instructors/lib.ts#L26
Type '{ schools: { array_contains: string[]; }; }[]' is not assignable to type 'InstructorWhereInput[]'.
Check for TypeScript errors: apps/api/src/routes/v1/rest/instructors/lib.ts#L31
Type '{ relatedDepartments: { array_contains: string[]; }; }[]' is not assignable to type 'InstructorWhereInput[]'.
Check for TypeScript errors: tools/registrar-scraper/src/instructor-scraper/index.ts#L219
Property 'courses' is missing in type '{ name: string; ucinetid: string; title: string; department: string; email: string; schools: string[]; relatedDepartments: string[]; shortenedName: string; courseHistory: {}; }' but required in type 'Instructor'.
Check for TypeScript errors
Process completed with exit code 1.