Skip to content

Commit

Permalink
fix(typescript): Adding return types
Browse files Browse the repository at this point in the history
This closes #1116
  • Loading branch information
mamodom authored and gr2m committed Nov 18, 2018
1 parent 0b9cc37 commit 18ac5bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/templates/index.d.ts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,15 @@ declare class Github {
authenticate(auth: Github.Auth): void;
hook: {
before(name: string, callback: (options: Github.HookOptions) => void)
after(name: string, callback: (response: Github.Response<any>, options: Github.HookOptions) => void)
error(name: string, callback: (error: Github.HookError, options: Github.HookOptions) => void)
wrap(name: string, callback: (request: (options: Github.HookOptions) => Promise<Github.Response<any>>, options: Github.HookOptions) => void)
before(name: string, callback: (options: Github.HookOptions) => void): void
after(name: string, callback: (response: Github.Response<any>, options: Github.HookOptions) => void): void
error(name: string, callback: (error: Github.HookError, options: Github.HookOptions) => void): void
wrap(name: string, callback: (request: (options: Github.HookOptions) => Promise<Github.Response<any>>, options: Github.HookOptions) => void): void
}

plugin(plugin: Github.Plugin | [Github.Plugin])
plugin(plugin: Github.Plugin | [Github.Plugin]): Github

registerEndpoints(routes: any)
registerEndpoints(routes: any): void

request: any

Expand Down

0 comments on commit 18ac5bf

Please sign in to comment.