Skip to content

Commit eb65e4d

Browse files
committed
fix: make API#listInstallation options argument optional
1 parent 53ec0ac commit eb65e4d

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.changeset/late-pugs-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@badrap/libapp": patch
3+
---
4+
5+
Make API#listInstallation options argument optional

src/api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ export class API<
9090
};
9191
}
9292

93-
async *listInstallations({
94-
status,
95-
}: {
93+
async *listInstallations(options?: {
9694
status?: InstallationStatus | InstallationStatus[];
9795
}): AsyncIterable<{
9896
id: string;
9997
owner?: { type: "team"; name: string } | { type: "user"; email: string };
10098
status: InstallationStatus;
10199
}> {
100+
const { status } = options ?? {};
101+
102102
const list = await this.#client.request({
103103
method: "GET",
104104
path: ["installations"],

0 commit comments

Comments
 (0)