Replace deprecated module keyword

This commit is contained in:
Ethan Resnick
2016-09-19 18:54:46 -04:00
parent 349b639b35
commit e822a596e4
+5 -5
View File
@@ -16,7 +16,7 @@ declare interface twilio {
(sid?: string, tkn?: string, options?: twilio.ClientOptions): twilio.RestClient;
}
declare module twilio {
declare namespace twilio {
// Composite Classes:
//==============================
@@ -166,7 +166,7 @@ declare module twilio {
clientName: string;
outgoingScopeParams: any;
scopeParams: any;
constructor(sid?: string, tkn?: string);
allowClientIncoming(clientName: string): Capability;
@@ -319,7 +319,7 @@ declare module twilio {
allowWorkerActivityUpdates(): void;
allowWorkerFetchAttributes(): void;
allowTaskReservationUpdates(): void;
addPolicy(url: string, method: string, allowed?: boolean, queryFilter?: any, postFilter?: any): void;
allow(url: string, method: string, queryFilter?: any, postFilter?: any): void;
deny(url: string, method: string, queryFilter?: any, postFilter?: any): void;
@@ -380,7 +380,7 @@ declare module twilio {
}
export interface TwimlMethod { (arg1: any | string | TwimlCallback, arg2?: any | string | TwimlCallback): Node }
export interface TwimlCallback { (node?: Node): void; }
export class Node implements NodeOptions {
@@ -435,7 +435,7 @@ declare module twilio {
export interface WebhookExpressOptions {
// The full URL (with query string) you used to configure the webhook with Twilio - overrides host/protocol options
url?: string;
// manually specify the host name used by Twilio in a number's webhook config
host?: string;