1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

Fix announcements typo

This commit is contained in:
ZelrDev 2022-02-06 15:37:52 +00:00
parent 685dddbcc7
commit e6385c6b43
2 changed files with 6 additions and 6 deletions

View file

@ -2,7 +2,7 @@ import Undici from "undici";
import { RequestOptions } from "undici/types/dispatcher"; import { RequestOptions } from "undici/types/dispatcher";
import { import {
ActivityResponse, ActivityResponse,
AnnoucementsResponse, AnnouncementsResponse,
BadgesResponse, BadgesResponse,
BehaviourResponse, BehaviourResponse,
DetentionsResponse, DetentionsResponse,
@ -210,12 +210,12 @@ export class ClasschartsClient {
); );
} }
/** /**
* Lists the logged in student's annoucements * Lists the logged in student's announcements
* @returns Array of annoucements * @returns Array of announcements
*/ */
async listAnnoucements(): Promise<AnnoucementsResponse> { async listAnnouncements(): Promise<AnnouncementsResponse> {
return await this.makeAuthedRequest( return await this.makeAuthedRequest(
API_BASE + "/annoucements/" + this.studentId, API_BASE + "/announcements/" + this.studentId,
{ {
method: "GET", method: "GET",
} }

View file

@ -277,4 +277,4 @@ export interface Annoucement {
pupil_consents: Array<any>; pupil_consents: Array<any>;
} }
export type AnnoucementsResponse = Array<Annoucement> export type AnnouncementsResponse = Array<Annoucement>