Skip to content

Commit

Permalink
Fix declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Feb 9, 2024
1 parent 62e6327 commit 38c9a95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare module 'github-api' {
export interface Repo {
listPullRequests({ state: string }): Promise<{
listPullRequests(filter: { state: string }): Promise<{
data: { number: number; title: string; head: { sha: string } }[];
}>;

Expand All @@ -14,7 +14,7 @@ declare module 'github-api' {
}

export default class GitHub {
constructor({ token: string });
constructor(options: { token: string });

getRepo(organization: string, repository: string): Repo;

Expand Down

0 comments on commit 38c9a95

Please sign in to comment.