Skip to content

Commit 18ac5bf

Browse files
mamodomgr2m
authored andcommitted
fix(typescript): Adding return types
This closes #1116
1 parent 0b9cc37 commit 18ac5bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/templates/index.d.ts.tpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,15 @@ declare class Github {
201201
authenticate(auth: Github.Auth): void;
202202
203203
hook: {
204-
before(name: string, callback: (options: Github.HookOptions) => void)
205-
after(name: string, callback: (response: Github.Response<any>, options: Github.HookOptions) => void)
206-
error(name: string, callback: (error: Github.HookError, options: Github.HookOptions) => void)
207-
wrap(name: string, callback: (request: (options: Github.HookOptions) => Promise<Github.Response<any>>, options: Github.HookOptions) => void)
204+
before(name: string, callback: (options: Github.HookOptions) => void): void
205+
after(name: string, callback: (response: Github.Response<any>, options: Github.HookOptions) => void): void
206+
error(name: string, callback: (error: Github.HookError, options: Github.HookOptions) => void): void
207+
wrap(name: string, callback: (request: (options: Github.HookOptions) => Promise<Github.Response<any>>, options: Github.HookOptions) => void): void
208208
}
209209

210-
plugin(plugin: Github.Plugin | [Github.Plugin])
210+
plugin(plugin: Github.Plugin | [Github.Plugin]): Github
211211

212-
registerEndpoints(routes: any)
212+
registerEndpoints(routes: any): void
213213

214214
request: any
215215

0 commit comments

Comments
 (0)