[node-zookeeper-client] fix exception path type

This commit is contained in:
Jesse Zhang
2017-11-07 16:57:40 -05:00
parent 0e02e7b65b
commit c08eccf29c
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -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');
}