Fix TypeScript definitions
This commit is contained in:
parent
cf196b9cc2
commit
212dd10ce2
6
index.d.ts
vendored
6
index.d.ts
vendored
|
@ -1,4 +1,5 @@
|
||||||
/// <reference types="node" />
|
/// <reference types="node" />
|
||||||
|
/// <reference types="Long" />
|
||||||
|
|
||||||
export namespace expectedVersion {
|
export namespace expectedVersion {
|
||||||
const any: number;
|
const any: number;
|
||||||
|
@ -6,6 +7,11 @@ export namespace expectedVersion {
|
||||||
const emptyStream: number;
|
const emptyStream: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Position {
|
||||||
|
readonly commitPosition: Long;
|
||||||
|
readonly preparePosition: Long;
|
||||||
|
}
|
||||||
|
|
||||||
export namespace positions {
|
export namespace positions {
|
||||||
const start: Position;
|
const start: Position;
|
||||||
const end: Position;
|
const end: Position;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "eventstore-node",
|
"name": "eventstore-node",
|
||||||
"version": "0.0.25",
|
"version": "0.0.26",
|
||||||
"description": "A port of the EventStore .Net ClientAPI to Node.js",
|
"description": "A port of the EventStore .Net ClientAPI to Node.js",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/nicdex/eventstore-node#readme",
|
"homepage": "https://github.com/nicdex/eventstore-node#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@types/long": "^3.0.31",
|
||||||
"@types/node": "^6.0.47",
|
"@types/node": "^6.0.47",
|
||||||
"long": "^3.2",
|
"long": "^3.2",
|
||||||
"protobufjs": "^5.0",
|
"protobufjs": "^5.0",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user