Fix TypeScript definitions

This commit is contained in:
Nicolas Dextraze 2017-02-02 18:02:14 -08:00
parent cf196b9cc2
commit 212dd10ce2
2 changed files with 8 additions and 1 deletions

6
index.d.ts vendored
View File

@ -1,4 +1,5 @@
/// <reference types="node" />
/// <reference types="Long" />
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;

View File

@ -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",