We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31facd6 commit 839b61bCopy full SHA for 839b61b
src/managers/application/index.ts
@@ -25,7 +25,9 @@ export class ApplicationManager {
25
async get(applicationId: string): Promise<Application>;
26
async get(
27
applicationId?: string,
28
- ): Promise<Application | Collection<string, BaseApplication>> {
+ ): Promise<
29
+ Application | BaseApplication | Collection<string, BaseApplication>
30
+ > {
31
const { response } = await this.client.api.user();
32
const user = new User(this.client, response);
33
@@ -40,7 +42,7 @@ export class ApplicationManager {
40
42
throw new SquareCloudAPIError("APP_NOT_FOUND");
41
43
}
44
- return application.fetch();
45
+ return application;
46
47
48
return user.applications;
0 commit comments