mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Merge pull request #21520 from Tapad/fix-zookeeper-client-exception-type
[node-zookeeper-client] fix zookeeper client exception constructor type
This commit is contained in:
+7
-1
@@ -172,7 +172,13 @@ export class Exception {
|
||||
code: number;
|
||||
name: string;
|
||||
path?: string;
|
||||
constructor(code: number, name: string, path?: string);
|
||||
|
||||
// tslint:disable-next-line ban-types
|
||||
constructor(code: number, name: string, path: string, ctor: Function);
|
||||
|
||||
// tslint:disable-next-line ban-types
|
||||
constructor(code: number, name: string, ctor: Function);
|
||||
|
||||
toString(): string;
|
||||
getCode(): number;
|
||||
getName(): string;
|
||||
|
||||
@@ -257,6 +257,6 @@ const client = zookeeper.createClient(
|
||||
}
|
||||
|
||||
{
|
||||
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test');
|
||||
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test', '/test');
|
||||
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test', zookeeper.Exception);
|
||||
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test', '/test', zookeeper.Exception);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user