Skip to content

Commit 8e7386b

Browse files
chore(typescript): Add noImplicitAny compliance check in test script
Closes #2693
1 parent 60e7407 commit 8e7386b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

noimplicitany.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// This file should be compiled using --noImplicitAny to ensure the .d.ts files are noImplicitAny compliant.
2+
// tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts
3+
4+
import * as router from "../lib/index";
5+
console.log(router);

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
"bundle_router": "rollup -c --environment ROUTER && rollup -c --environment ROUTER,MINIFY",
1212
"bundle_events": "rollup -c --environment EVENTS && rollup -c --environment EVENTS,MINIFY",
1313
"bundle_resolve": "rollup -c --environment RESOLVE && rollup -c --environment RESOLVE,MINIFY",
14+
"noimplicitany": "tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts",
1415
"test": "npm run test:integrate",
1516
"test:ng12": "karma start --ngversion 1.2",
1617
"test:ng13": "karma start --ngversion 1.3",
1718
"test:ng14": "karma start --ngversion 1.4",
1819
"test:ng15": "karma start --ngversion 1.5",
1920
"test:ng16": "karma start --ngversion 1.6",
20-
"test:integrate": "tsc && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15 && npm run test:ng16",
21+
"test:integrate": "tsc && npm run noimplicitany && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15 && npm run test:ng16",
2122
"watch": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1",
2223
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
2324
"docs": "./scripts/docs.js"

0 commit comments

Comments
 (0)