From 212dd10ce29d549ca9e619afb26a9c63f0f97d31 Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Thu, 2 Feb 2017 18:02:14 -0800 Subject: [PATCH] Fix TypeScript definitions --- index.d.ts | 6 ++++++ package.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 5780dea..3d6551a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,4 +1,5 @@ /// +/// export namespace expectedVersion { const any: number; @@ -6,6 +7,11 @@ export namespace expectedVersion { const emptyStream: number; } +export interface Position { + readonly commitPosition: Long; + readonly preparePosition: Long; +} + export namespace positions { const start: Position; const end: Position; diff --git a/package.json b/package.json index e3756b6..de4e89a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eventstore-node", - "version": "0.0.25", + "version": "0.0.26", "description": "A port of the EventStore .Net ClientAPI to Node.js", "main": "index.js", "types": "index.d.ts", @@ -40,6 +40,7 @@ }, "homepage": "https://github.com/nicdex/eventstore-node#readme", "dependencies": { + "@types/long": "^3.0.31", "@types/node": "^6.0.47", "long": "^3.2", "protobufjs": "^5.0",