From e03e0e2ab532c264a49b6e1a800816d8950d0346 Mon Sep 17 00:00:00 2001 From: veloii <85405932+veloii@users.noreply.github.com> Date: Mon, 27 May 2024 22:41:36 +0100 Subject: [PATCH] types: improve activity point --- src/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types.ts b/src/types.ts index 2a56a01..85ac8ed 100644 --- a/src/types.ts +++ b/src/types.ts @@ -113,7 +113,7 @@ export interface GetActivityOptions { export interface ActivityPoint { id: number; type: string; - polarity: string; + polarity: "positive" | "blank" | "negative" | string & {}; reason: string; score: number; timestamp: string; @@ -124,11 +124,11 @@ export interface ActivityPoint { }; pupil_name: string; lesson_name: string | null; - teacher_name: string; + teacher_name: string | null; room_name: string | null; note: string | null; _can_delete: boolean; - badges: string | undefined; + badges: string; detention_date: string | null; detention_time: string | null; detention_location: string | null;