Skip to content

Commit

Permalink
fix(typescript): return type for octokit.hook.wrap callback (#1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Jun 24, 2020
1 parent 8f08195 commit 0798dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33704,7 +33704,7 @@ export class Octokit {
options: Octokit.HookOptions
) => Promise<Octokit.Response<any>>,
options: Octokit.HookOptions
) => void
) => Promise<Octokit.Response<any>>
): void;
};

Expand Down
2 changes: 1 addition & 1 deletion scripts/update-endpoints/templates/index.d.ts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ export class Octokit {
before(name: string, callback: (options: Octokit.HookOptions) => void): void
after(name: string, callback: (response: Octokit.Response<any>, options: Octokit.HookOptions) => void): void
error(name: string, callback: (error: Octokit.HookError, options: Octokit.HookOptions) => void): void
wrap(name: string, callback: (request: (options: Octokit.HookOptions) => Promise<Octokit.Response<any>>, options: Octokit.HookOptions) => void): void
wrap(name: string, callback: (request: (options: Octokit.HookOptions) => Promise<Octokit.Response<any>>, options: Octokit.HookOptions) => Promise<Octokit.Response<any>>): void
}

static plugin(plugin: Octokit.Plugin | Octokit.Plugin[]): Octokit.Static;
Expand Down

0 comments on commit 0798dcd

Please sign in to comment.