@types/twilio
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -10,3 +10,3 @@ // Type definitions for twilio | ||
import * as express from 'express'; | ||
import * as Express from 'express'; | ||
import * as Http from 'http'; | ||
@@ -20,3 +20,3 @@ | ||
declare module twilio { | ||
declare namespace twilio { | ||
@@ -384,5 +384,9 @@ // Composite Classes: | ||
export interface TwimlMethod { (arg1: any | string | TwimlCallback, arg2?: any | string | TwimlCallback): Node } | ||
export interface TwimlMethod { | ||
(): Node; | ||
(arg1: TwimlCallback | string, arg2?: any): Node; | ||
(arg1: any, arg2?: TwimlCallback | string): Node; | ||
} | ||
export interface TwimlCallback { (node?: Node): void; } | ||
export interface TwimlCallback { (node: Node): void; } | ||
@@ -431,3 +435,3 @@ export class Node implements NodeOptions { | ||
/// webhook.js | ||
export interface webhookOptions { | ||
export interface WebhookOptions { | ||
validate?: boolean; | ||
@@ -451,5 +455,6 @@ includeHelpers?: boolean; | ||
// For interop with node middleware chains | ||
export interface MiddlewareFunction { (request: Http.ClientRequest, response: Http.ClientResponse, next: MiddlewareFunction): void; } | ||
export interface MiddlewareFunction { (request: Http.ServerRequest, response: Http.ServerResponse, next: Express.NextFunction): void; } | ||
export function webhook(options?: string | webhookOptions): MiddlewareFunction; | ||
export function webhook(authToken: string, options?: WebhookOptions): MiddlewareFunction; | ||
export function webhook(options?: WebhookOptions): MiddlewareFunction; | ||
@@ -456,0 +461,0 @@ export function validateRequest(authToken: string, twilioHeader: string, url: string, params?: any): boolean; |
{ | ||
"name": "@types/twilio", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "TypeScript definitions for twilio", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "1f0c2e5c430781cf98a615bf4dba5a6717fc711c8594ab3618edef94961bd748" | ||
"typesPublisherContentHash": "5176a6f91f5c593de5cc02503695fb9714e75fd0dd7fb4719884991a33702eb7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* Last updated: Wed, 21 Sep 2016 20:25:58 GMT | ||
* File structure: ProperModule | ||
@@ -14,0 +14,0 @@ * Library Dependencies: express, node, q |
@@ -32,3 +32,3 @@ { | ||
"hasPackageJson": false, | ||
"contentHash": "1f0c2e5c430781cf98a615bf4dba5a6717fc711c8594ab3618edef94961bd748" | ||
"contentHash": "5176a6f91f5c593de5cc02503695fb9714e75fd0dd7fb4719884991a33702eb7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
32103
737
0