Skip to content

Commit 0f4af83

Browse files
fix: remove unused @types/long (#1785)
* fix: remove unused `@types/long` * fix: typescript tests Co-authored-by: Alexander Fenster <[email protected]>
1 parent bb6b1d4 commit 0f4af83

File tree

5 files changed

+5
-24
lines changed

5 files changed

+5
-24
lines changed

cli/package-lock.json

-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"prof": "node bench/prof",
3737
"test": "npm run test:sources && npm run test:types",
3838
"test:sources": "tape -r ./lib/tape-adapter tests/*.js tests/node/*.js",
39-
"test:types": "tsc tests/comp_typescript.ts --lib es2015 --strictNullChecks --experimentalDecorators --emitDecoratorMetadata && tsc tests/data/test.js.ts --lib es2015 --noEmit --strictNullChecks && tsc tests/data/*.ts --lib es2015 --noEmit --strictNullChecks",
39+
"test:types": "tsc tests/comp_typescript.ts --lib es2015 --esModuleInterop --strictNullChecks --experimentalDecorators --emitDecoratorMetadata && tsc tests/data/test.js.ts --lib es2015 --esModuleInterop --noEmit --strictNullChecks && tsc tests/data/*.ts --lib es2015 --esModuleInterop --noEmit --strictNullChecks",
4040
"make": "npm run lint:sources && npm run build && npm run lint:types && node ./scripts/gentests.js && npm test"
4141
},
4242
"dependencies": {
@@ -50,7 +50,6 @@
5050
"@protobufjs/path": "^1.1.2",
5151
"@protobufjs/pool": "^1.1.0",
5252
"@protobufjs/utf8": "^1.1.0",
53-
"@types/long": "^4.0.1",
5453
"@types/node": ">=13.7.0",
5554
"long": "^5.0.0"
5655
},

tests/data/convert.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import * as $protobuf from "../..";
2+
import Long from "long";
3+
24
export interface IMessage {
35
stringVal?: (string|null);
46
stringRepeated?: (string[]|null);

tests/data/test.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import * as $protobuf from "../..";
2+
import Long from "long";
3+
24
export namespace jspb {
35

46
namespace test {

0 commit comments

Comments
 (0)