Skip to content

Commit 404ba8e

Browse files
committed
Other: Just alias as the actual ideal type when using stubs, see #718
1 parent 3ba3ad7 commit 404ba8e

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
"@protobufjs/inquire": "^1.1.0",
5252
"@protobufjs/path": "^1.1.2",
5353
"@protobufjs/pool": "^1.1.0",
54-
"@protobufjs/utf8": "^1.1.0",
55-
"@types/node": "7.0.7"
54+
"@protobufjs/utf8": "^1.1.0"
5655
},
5756
"optionalDependencies": {
5857
"long": "^3.2.0",
59-
"@types/long": "^3.0.31"
58+
"@types/long": "^3.0.31",
59+
"@types/node": "7.0.10"
6060
},
6161
"devDependencies": {
6262
"benchmark": "^2.1.3",
@@ -65,18 +65,18 @@
6565
"bundle-collapser": "^1.2.1",
6666
"chalk": "^1.1.3",
6767
"escodegen": "^1.8.1",
68-
"eslint": "^3.17.1",
68+
"eslint": "^3.18.0",
6969
"espree": "^3.1.3",
7070
"estraverse": "^4.2.0",
7171
"gh-pages": "^0.12.0",
72-
"git-raw-commits": "^1.1.2",
73-
"git-semver-tags": "^1.1.2",
72+
"git-raw-commits": "^1.2.0",
73+
"git-semver-tags": "^1.2.0",
7474
"glob": "^7.1.1",
7575
"gulp": "^3.9.1",
7676
"gulp-header": "^1.8.8",
7777
"gulp-if": "^2.0.1",
7878
"gulp-sourcemaps": "^2.4.1",
79-
"gulp-uglify": "^2.1.0",
79+
"gulp-uglify": "^2.1.2",
8080
"istanbul": "^0.4.5",
8181
"jaguarjs-jsdoc": "dcodeIO/jaguarjs-jsdoc",
8282
"jsdoc": "^3.4.2",
@@ -88,7 +88,7 @@
8888
"tmp": "0.0.31",
8989
"tslint": "^4.5.1",
9090
"typescript": "^2.2.1",
91-
"uglify-js": "^2.8.10",
91+
"uglify-js": "^2.8.15",
9292
"vinyl-buffer": "^1.0.0",
9393
"vinyl-fs": "^2.4.4",
9494
"vinyl-source-stream": "^1.1.0"

stub-long.d.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
// minimal stub for Long instances for reference when not using long.js,
22
// i.e. <reference path="node_modules/protobufjs/stub-long.d.ts" />
33

4-
type Long = LongStub;
5-
6-
interface LongStub {
7-
lo: number,
8-
hi: number,
9-
unsigned?: boolean
10-
}
4+
type Long = number;

stub-node.d.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
// minimal stub for node types for reference when not using node,
22
// i.e. <reference path="node_modules/protobufjs/stub-node.d.ts" />
33

4-
type Buffer = BufferStub;
5-
6-
interface BufferStub extends Uint8Array {
7-
}
4+
type Buffer = Uint8Array;

0 commit comments

Comments
 (0)