mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
[node-zookeeper-client] fix exception path type
This commit is contained in:
+2
-2
@@ -171,8 +171,8 @@ export class Exception {
|
||||
|
||||
code: number;
|
||||
name: string;
|
||||
path: number;
|
||||
constructor(code: number, name: string, path: number);
|
||||
path?: string;
|
||||
constructor(code: number, name: string, path?: string);
|
||||
toString(): string;
|
||||
getCode(): number;
|
||||
getName(): string;
|
||||
|
||||
@@ -255,3 +255,8 @@ const client = zookeeper.createClient(
|
||||
{
|
||||
new zookeeper.Event(zookeeper.Event.NODE_CREATED, 'test', '/test');
|
||||
}
|
||||
|
||||
{
|
||||
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test');
|
||||
new zookeeper.Exception(zookeeper.Exception.NO_NODE, 'test', '/test');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user