mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-22 12:33:38 +08:00
20 lines
714 B
TypeScript
20 lines
714 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' />
|
|
|
|
|
|
import * as events from 'events';
|
|
|
|
declare 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;
|
|
}
|
|
declare function createClient(wsdlPath: string, options: any, fn: (err: any, client: Client) => void): void;
|