Skip to content

Commit

Permalink
Other: Just alias as the actual ideal type when using stubs, see #718
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Mar 23, 2017
1 parent 3ba3ad7 commit 404ba8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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"
Expand Down
8 changes: 1 addition & 7 deletions stub-long.d.ts
Original file line number Diff line number Diff line change
@@ -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;
5 changes: 1 addition & 4 deletions stub-node.d.ts
Original file line number Diff line number Diff line change
@@ -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.