1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 03:56:59 +00:00

fix: add meta for getDetentions

This commit is contained in:
veloii 2023-09-15 20:12:19 +01:00
parent c0e869e2fe
commit c279d9120f
2 changed files with 9 additions and 3 deletions

View file

@ -279,7 +279,7 @@ export class BaseClient {
method: "GET",
},
)
).data;
);
}
/**
* Gets the current student's attendance

View file

@ -335,8 +335,14 @@ export interface Detention {
name: string;
};
}
// TODO: Update typings to include meta response. Currently not possible since I don't have access
export type DetentionsResponse = Array<Detention>;
export type DetentionsData = Array<Detention>
export interface DetentionsMeta {
detention_alias_plural: string
}
export type DetentionsResponse = ClassChartsResponse<DetentionsData, DetentionsMeta>;
export interface Announcement {
id: number;