update soap definition

This commit is contained in:
etuxxyl
2016-03-15 14:34:20 +08:00
parent 81ebfb3d08
commit 40f2dd30cf
2 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -3,11 +3,15 @@
// Definitions by: Nicole Wang <https://github.com/nicoleWjie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path='../node/node.d.ts' />
declare module 'soap' {
import * as events from 'events';
class WSSecurity {
constructor(username: string, password: string, options: any);
}
interface Client {
interface Client extends events.EventEmitter {
setSecurity(s: WSSecurity): void;
[method: string]: (args: any, fn: (err: any, result: any) => void, options?: any) => void;
addSoapHeader(headJSON: any): void;