Permalink
Browse files

Other: Just alias as the actual ideal type when using stubs, see #718

  • Loading branch information...
dcodeIO committed Mar 23, 2017
1 parent 3ba3ad7 commit 404ba8e03a63f708a70a72f0208e0ca9826fe20b
Showing with 10 additions and 19 deletions.
  1. +8 −8 package.json
  2. +1 −7 stub-long.d.ts
  3. +1 −4 stub-node.d.ts
@@ -51,12 +51,12 @@
"@protobufjs/inquire": "^1.1.0",
"@protobufjs/path": "^1.1.2",
"@protobufjs/pool": "^1.1.0",
"@protobufjs/utf8": "^1.1.0",
"@types/node": "7.0.7"
"@protobufjs/utf8": "^1.1.0"
},
"optionalDependencies": {
"long": "^3.2.0",
"@types/long": "^3.0.31"
"@types/long": "^3.0.31",
"@types/node": "7.0.10"
},
"devDependencies": {
"benchmark": "^2.1.3",
@@ -65,18 +65,18 @@
"bundle-collapser": "^1.2.1",
"chalk": "^1.1.3",
"escodegen": "^1.8.1",
"eslint": "^3.17.1",
"eslint": "^3.18.0",
"espree": "^3.1.3",
"estraverse": "^4.2.0",
"gh-pages": "^0.12.0",
"git-raw-commits": "^1.1.2",
"git-semver-tags": "^1.1.2",
"git-raw-commits": "^1.2.0",
"git-semver-tags": "^1.2.0",
"glob": "^7.1.1",
"gulp": "^3.9.1",
"gulp-header": "^1.8.8",
"gulp-if": "^2.0.1",
"gulp-sourcemaps": "^2.4.1",
"gulp-uglify": "^2.1.0",
"gulp-uglify": "^2.1.2",
"istanbul": "^0.4.5",
"jaguarjs-jsdoc": "dcodeIO/jaguarjs-jsdoc",
"jsdoc": "^3.4.2",
@@ -88,7 +88,7 @@
"tmp": "0.0.31",
"tslint": "^4.5.1",
"typescript": "^2.2.1",
"uglify-js": "^2.8.10",
"uglify-js": "^2.8.15",
"vinyl-buffer": "^1.0.0",
"vinyl-fs": "^2.4.4",
"vinyl-source-stream": "^1.1.0"
@@ -1,10 +1,4 @@
// minimal stub for Long instances for reference when not using long.js,
// i.e. <reference path="node_modules/protobufjs/stub-long.d.ts" />
type Long = LongStub;
interface LongStub {
lo: number,
hi: number,
unsigned?: boolean
}
type Long = number;
@@ -1,7 +1,4 @@
// minimal stub for node types for reference when not using node,
// i.e. <reference path="node_modules/protobufjs/stub-node.d.ts" />
type Buffer = BufferStub;
interface BufferStub extends Uint8Array {
}
type Buffer = Uint8Array;

0 comments on commit 404ba8e

Please sign in to comment.