Files
DefinitelyTyped/soap/soap.d.ts
2016-03-15 14:34:20 +08:00

21 lines
763 B
TypeScript

// Type definitions for soap
// Project: https://www.npmjs.com/package/soap
// 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 extends events.EventEmitter {
setSecurity(s: WSSecurity): void;
[method: string]: (args: any, fn: (err: any, result: any) => void, options?: any) => void;
addSoapHeader(headJSON: any): void;
}
function createClient(wsdlPath: string, options: any, fn: (err: any, client: Client) => void): void;
}