forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
soap.d.ts
21 lines (17 loc) · 763 Bytes
/
soap.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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;
}