Skip to content

Commit

Permalink
fix(typescript): Properly fix #64
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored and gr2m committed Apr 1, 2019
1 parent b010d16 commit be402c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare class Webhooks {
public receive (options: { id: string, name: string, payload: any }): Promise<void>
public removeListener (event: string | string[], callback: (event: Webhooks.WebhookEvent<any>) => void): void
public removeListener (event: string | string[], callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>): void
public middleware (request: http.ClientRequest, response: http.ServerResponse, next: (err?: any) => void): (request: http.IncomingMessage, response: http.ServerResponse) => void
public middleware (request: http.IncomingMessage, response: http.ServerResponse, next?: (err?: any) => void): void | Promise<void>
}
export = Webhooks
Expand Down

0 comments on commit be402c2

Please sign in to comment.