mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix wrong CreateMode value
This commit is contained in:
parent
e297d2677f
commit
c4cee4d79e
2
node-zookeeper-client/index.d.ts
vendored
2
node-zookeeper-client/index.d.ts
vendored
@ -132,7 +132,7 @@ export function createClient(connectionString: string, options?: Partial<Option>
|
||||
export const CreateMode: {
|
||||
PERSISTENT: number,
|
||||
PERSISTENT_SEQUENTIAL: number,
|
||||
EPHEMERA: number,
|
||||
EPHEMERAL: number,
|
||||
EPHEMERAL_SEQUENTIAL: number,
|
||||
};
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ const client = zookeeper.createClient(
|
||||
client.create(
|
||||
'/test/demo',
|
||||
new Buffer('data'),
|
||||
zookeeper.CreateMode.EPHEMERA,
|
||||
zookeeper.CreateMode.EPHEMERAL,
|
||||
function (error: Error, path) {
|
||||
if (error) {
|
||||
console.log(error.stack);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user