Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Aug 27, 2024
1 parent 0a96a56 commit 8474938
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/api/endpoints/klass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import {
type RetrieveArg,
type RetrieveResult,
} from "../../utils/api"
import type { Class, Teacher, SchoolTeacher, User } from "../models"
import type {
Class,
Teacher,
SchoolTeacher,
SchoolTeacherUser,
} from "../models"
import { type TagTypes } from "../tagTypes"
import urls from "../urls"

Expand All @@ -20,7 +25,7 @@ export type RetrieveClassResult = RetrieveResult<
> & {
teacher: SchoolTeacher & {
user: Pick<
User,
SchoolTeacherUser,
| "id"
| "first_name"
| "last_name"
Expand All @@ -39,7 +44,7 @@ export type ListClassesResult = ListResult<
{
teacher: SchoolTeacher & {
user: Pick<
User,
SchoolTeacherUser,
| "id"
| "first_name"
| "last_name"
Expand Down

0 comments on commit 8474938

Please sign in to comment.