Skip to content

Commit 515ac76

Browse files
fix: types & format
1 parent 731672f commit 515ac76

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

src/types.ts

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export interface GetActivityOptions {
113113
export interface ActivityPoint {
114114
id: number;
115115
type: string;
116-
polarity: "positive" | "blank" | "negative" | string & {};
116+
polarity: "positive" | "blank" | "negative" | (string & {});
117117
reason: string;
118118
score: number;
119119
timestamp: string;
@@ -178,20 +178,20 @@ export interface ValidatedHomeworkAttachment {
178178
* Teacher uploaded links
179179
*/
180180
export interface ValidatedLink {
181-
link: string;
182-
validated_link: string;
181+
link: string;
182+
validated_link: string;
183183
}
184184
/**
185185
* User uploaded attachments
186186
*/
187187
export interface StudentHomeworkAttachment {
188-
id: number;
189-
file_name: string;
190-
file: string;
191-
validated_file: string;
192-
teacher_note: string;
193-
teacher_homework_attachments: unknown[];
194-
can_delete: boolean;
188+
id: number;
189+
file_name: string;
190+
file: string;
191+
validated_file: string;
192+
teacher_note: string;
193+
teacher_homework_attachments: unknown[];
194+
can_delete: boolean;
195195
}
196196
export interface Homework {
197197
lesson: string;
@@ -214,10 +214,10 @@ export interface Homework {
214214
mark_relative: number;
215215
ticked: "yes" | "no";
216216
allow_attachments: boolean;
217-
allow_marking_completed: boolean;
217+
allow_marking_completed: boolean;
218218
first_seen_date: string | null;
219219
last_seen_date: string | null;
220-
attachments: HomeworkAttachment[];
220+
attachments: StudentHomeworkAttachment[];
221221
has_feedback: boolean;
222222
};
223223
validated_links: ValidatedLink[];
@@ -396,10 +396,7 @@ export interface Announcement {
396396
pupil_consents: unknown[];
397397
}
398398

399-
export type AnnouncementsResponse = ClassChartsResponse<
400-
Announcement[],
401-
[]
402-
>;
399+
export type AnnouncementsResponse = ClassChartsResponse<Announcement[], []>;
403400

404401
export interface Pupil extends Student {
405402
school_name: string;
@@ -446,7 +443,7 @@ export interface GetAttendanceOptions {
446443

447444
export interface AttendancePeriod {
448445
code: string;
449-
status: "present" | "ignore" | string & {};
446+
status: "present" | "ignore" | (string & {});
450447
late_minutes: number | string;
451448
lesson_name?: string;
452449
room_name?: string;

0 commit comments

Comments
 (0)