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:
parent
02eac2ce7e
commit
0f242a62ba
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue