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

fix: add .init() back

This commit is contained in:
James Cook 2022-02-06 10:16:42 +00:00
parent 02eac2ce7e
commit 0f242a62ba

View file

@ -94,6 +94,13 @@ export class ClasschartsClient {
this.studentId = user.id;
this.studentName = user.name;
}
/**
* @deprecated Use .login() instead
*/
async init(): Promise<void> {
console.warn(".init() is deprecated, please use .login()");
await this.login();
}
/**
* Gets general information about the logged in student
* @returns Student object