We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53ec0ac commit eb65e4dCopy full SHA for eb65e4d
2 files changed
.changeset/late-pugs-jump.md
@@ -0,0 +1,5 @@
1
+---
2
+"@badrap/libapp": patch
3
4
+
5
+Make API#listInstallation options argument optional
src/api/index.ts
@@ -90,15 +90,15 @@ export class API<
90
};
91
}
92
93
- async *listInstallations({
94
- status,
95
- }: {
+ async *listInstallations(options?: {
96
status?: InstallationStatus | InstallationStatus[];
97
}): AsyncIterable<{
98
id: string;
99
owner?: { type: "team"; name: string } | { type: "user"; email: string };
100
status: InstallationStatus;
101
}> {
+ const { status } = options ?? {};
102
const list = await this.#client.request({
103
method: "GET",
104
path: ["installations"],
0 commit comments