Skip to content

Commit

Permalink
Unify imports
Browse files Browse the repository at this point in the history
  • Loading branch information
a2br committed Oct 31, 2022
1 parent 93158c4 commit fd3814f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/accounts/Teacher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ import {
schoolsResSuccess,
studentsResSuccess,
} from "ecoledirecte-api-types/v3";
import { getMainAccount, fetchPhoto } from "../util";
import { getTeachersSchools } from "../util/teacher/schools";
import { TeachersSchool, TeachersStudent } from "../classes/School";
import { getTeachersStudents } from "../util/teacher/students";
import {
getMainAccount,
fetchPhoto,
getTeachersSchools,
getTeachersStudents,
} from "../util";
import { TeachersSchool, TeachersStudent } from "../classes";

export class Teacher extends Account {
public type: "teacher" = "teacher";
Expand Down
1 change: 1 addition & 0 deletions lib/classes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export * from "./Period";
export * from "./Timeline";
export * from "./Cloud";
export * from "./Course";
export * from "./School";

export * from "./ExpandedB64";
5 changes: 5 additions & 0 deletions lib/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ export * from "./global/cloud";
//! TIMETABLE

export * from "./global/timetable";

//! TEACHER: SCHOOLS AND STUDENTS

export * from "./teacher/schools";
export * from "./teacher/students";

0 comments on commit fd3814f

Please sign in to comment.