From eb2bdfd557c4500842f404deb2e63b2db4f82da4 Mon Sep 17 00:00:00 2001 From: Veloi <85405932+veloii@users.noreply.github.com> Date: Sat, 23 Sep 2023 21:48:21 +0100 Subject: [PATCH] fix: detention lesson and teacher to be nullable --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 0cf7132..de8cd72 100644 --- a/src/types.ts +++ b/src/types.ts @@ -321,7 +321,7 @@ export interface Detention { id: number; name: string; }; - }; + } | null; lesson_pupil_behaviour: { reason: string; }; @@ -330,7 +330,7 @@ export interface Detention { first_name: string; last_name: string; title: string; - }; + } | null; detention_type: { name: string; };