Merge branch 'master' into refactor/parsing-options-superclass

This commit is contained in:
DerPenz
2023-04-15 18:38:17 +02:00
committed by GitHub
7 changed files with 60 additions and 19 deletions

View File

@@ -1,11 +1,12 @@
import { BaseEndpoint } from './base';
import { AccountDetails } from '../types/account';
export class AccountEndpoint extends BaseEndpoint {
constructor(accessToken: string) {
super(accessToken);
}
async details(): Promise<any> {
async details(): Promise<AccountDetails> {
return await this.api.get('/account');
}
}