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

Merge pull request #4 from ZelrDev/main

Fix typo
This commit is contained in:
James Cook 2022-02-06 15:54:17 +00:00 committed by GitHub
commit 60e10e27b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

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

View file

@ -252,7 +252,7 @@ export interface Detention {
}
export type DetentionsResponse = Array<Detention>;
export interface Annoucement {
export interface Announcement {
id: number;
title: string;
description: string | null;
@ -278,4 +278,4 @@ export interface Annoucement {
pupil_consents: Array<any>;
}
export type AnnoucementsResponse = Array<Annoucement>;
export type AnnouncementsResponse = Array<Announcement>;