Skip to content

fix: ensure that flag and modify button metadata uses strings (WIP) #1033

fix: ensure that flag and modify button metadata uses strings (WIP)

fix: ensure that flag and modify button metadata uses strings (WIP) #1033

Triggered via pull request October 29, 2024 17:07
Status Failure
Total duration 1m 25s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 10 warnings
lint
Type 'string | Record<string, unknown> | unknown[]' is not assignable to type 'LessonPlanSectionWhileStreaming'.
lint
Type 'string | Record<string, unknown> | unknown[]' is not assignable to type 'LessonPlanSectionWhileStreaming'.
lint
@oakai/nextjs#type-check: command (/home/runner/work/oak-ai-lesson-assistant/oak-ai-lesson-assistant/apps/nextjs) /home/runner/setup-pnpm/node_modules/.bin/pnpm run type-check exited (2)
lint
Process completed with exit code 2.
lint: packages/aila/src/core/Aila.liveWithOpenAI.test.ts#L115
Unsafe assignment of an `any` value
lint: packages/aila/src/core/Aila.ts#L79
Unsafe assignment of an `any` value
lint: packages/aila/src/core/Aila.ts#L235
Unsafe return of an error typed value
lint: packages/aila/src/core/Aila.ts#L254
Unexpected constant condition
lint: packages/aila/src/core/chat/AilaStreamHandler.ts#L47
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
lint: packages/aila/src/core/lesson/AilaLesson.ts#L80
Unsafe assignment of an `any` value
lint: packages/aila/src/core/lesson/AilaLesson.ts#L81
Unsafe argument of type `any` assigned to a parameter of type `{}`
lint: packages/aila/src/core/lesson/AilaLesson.ts#L82
Unsafe member access [k] on an `any` value
lint: packages/aila/src/core/lesson/AilaLesson.ts#L103
Unsafe argument of type `any` assigned to a parameter of type `{ title?: string | undefined; subject?: string | undefined; keyStage?: string | undefined; topic?: string | undefined; learningOutcome?: string | undefined; learningCycles?: string[] | undefined; ... 10 more ...; additionalMaterials?: string | undefined; }`
lint: packages/aila/src/core/lesson/AilaLesson.ts#L116
Unsafe argument of type `any` assigned to a parameter of type `{}`