mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add missing webhook() signature
This commit is contained in:
@@ -228,5 +228,5 @@ twilio.validateRequest(token, str, 'http://example.herokuapp.com', { query: 'val
|
||||
twilio.validateExpressRequest({}, 'YOUR_TWILIO_AUTH_TOKEN');
|
||||
twilio.validateExpressRequest({}, 'YOUR_TWILIO_AUTH_TOKEN', {});
|
||||
twilio.webhook({ validate: false });
|
||||
|
||||
twilio.webhook("MYAUTHTOKEN", { validate: false });
|
||||
|
||||
|
||||
Vendored
+2
-1
@@ -446,7 +446,8 @@ declare namespace twilio {
|
||||
// For interop with node middleware chains
|
||||
export interface MiddlewareFunction { (request: Http.ClientRequest, response: Http.ClientResponse, next: MiddlewareFunction): void; }
|
||||
|
||||
export function webhook(options?: string | webhookOptions): MiddlewareFunction;
|
||||
export function webhook(authToken: string, options?: webhookOptions): MiddlewareFunction;
|
||||
export function webhook(options?: webhookOptions): MiddlewareFunction;
|
||||
|
||||
export function validateRequest(authToken: string, twilioHeader: string, url: string, params?: any): boolean;
|
||||
export function validateExpressRequest(request: express.Request, authToken: string, options?: WebhookExpressOptions): boolean;
|
||||
|
||||
Reference in New Issue
Block a user