Skip to content

Commit 772ea8e

Browse files
notaphploverDragos PodaruPodaruDragosjkhmtxtonyhallett
authored
Update typescript compiler options (inversify#1311)
* refactor: update typescript compiler options to be strict * test: add more specific type to match onActivation callback * test: update inversify.tests to compile * test * remove test * fix merging issues * add 2 spaces to all files * copy tests from master and reaplace to be compatible with this branch * removed old packages * replace metadata any * fix all issues * try fix performance * revert * Add node typings to root tsconfig.json * Add performance from perf_hooks for those tests which require it. * address some feedback * change metadata value to unknown * remove any from generic * replace Function type with NewableFunction * replace most of any's * remove casts to number * review changes * feedback * change to unknown for the last 2 MD files * review * update md for FactoryCreator and introduce helper types * trailing whitespace * tony's feedback remove more any's remove casts to any make metadata generic * remove more any's Co-authored-by: Dragos Podaru <dragos.podaru@busymachines.com> Co-authored-by: Podaru Dragos <podaru.dragos@gmail.com> Co-authored-by: Jake Hamilton <jakehamtexas@gmail.com> Co-authored-by: Tony Hallett <tonyhallett74@gmail.com> Co-authored-by: Dan Cavanagh <djcavanagh@gmail.com>
1 parent b7bbdb1 commit 772ea8e

124 files changed

Lines changed: 23543 additions & 14424 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/launch.json

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
11
{
2-
// Use IntelliSense to learn about possible Node.js debug attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"type": "node",
9-
"request": "launch",
10-
"name": "Mocha Tests",
11-
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
12-
"args": [
13-
"-r",
14-
"ts-node/register",
15-
"--require",
16-
"reflect-metadata",
17-
"--timeout",
18-
"999999",
19-
"--colors",
20-
"${workspaceRoot}/test/**/*.test.ts"
21-
],
22-
"console": "integratedTerminal",
23-
"internalConsoleOptions": "neverOpen",
24-
"protocol": "inspector"
25-
},
26-
{
27-
"type": "node",
28-
"request": "launch",
29-
"name": "Launch Program",
30-
"program": "${workspaceRoot}/lib/inversify.js",
31-
"outFiles": [
32-
"${workspaceRoot}/out/**/*.js"
33-
]
34-
},
35-
{
36-
"name": "GulpTester",
37-
"type": "node",
38-
"request": "launch",
39-
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js",
40-
"stopOnEntry": false,
41-
"args": [],
42-
"cwd": "${workspaceRoot}",
43-
"runtimeArgs": [
44-
"--nolazy"
45-
],
46-
"console": "internalConsole",
47-
}
48-
]
49-
}
2+
// Use IntelliSense to learn about possible Node.js debug attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Mocha Tests",
11+
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
12+
"args": [
13+
"-r",
14+
"ts-node/register",
15+
"--require",
16+
"reflect-metadata",
17+
"--timeout",
18+
"999999",
19+
"--colors",
20+
"${workspaceRoot}/test/**/*.test.ts"
21+
],
22+
"console": "integratedTerminal",
23+
"internalConsoleOptions": "neverOpen",
24+
"protocol": "inspector"
25+
},
26+
{
27+
"type": "node",
28+
"request": "launch",
29+
"name": "Launch Program",
30+
"program": "${workspaceRoot}/lib/inversify.js",
31+
"outFiles": [
32+
"${workspaceRoot}/out/**/*.js"
33+
]
34+
},
35+
{
36+
"name": "GulpTester",
37+
"type": "node",
38+
"request": "launch",
39+
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js",
40+
"stopOnEntry": false,
41+
"args": [],
42+
"cwd": "${workspaceRoot}",
43+
"runtimeArgs": [
44+
"--nolazy"
45+
],
46+
"console": "internalConsole",
47+
}
48+
]
49+
}

.vscode/settings.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
{
2-
"files.exclude": {
3-
"**/.git": true,
4-
"**/.DS_Store": true,
5-
// "src/**/*.js": true,
6-
"test/**/*.js": true,
7-
// "**/*.js.map": true,
8-
// "**/es": true,
9-
// "**/lib": true,
10-
// "**/amd": true,
11-
// "**/dts": true,
12-
// "**/temp": true,
13-
// "**/coverage": true,
14-
// "**/dist": true,
15-
// "**/docs": true,
16-
"type_definitions/**/*.js": true
17-
},
18-
"tslint.alwaysShowRuleFailuresAsWarnings": true,
19-
"tslint.autoFixOnSave": true,
20-
"typescript.tsdk": "./node_modules/typescript/lib",
21-
"vsicons.presets.angular": false
22-
}
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.DS_Store": true,
5+
// "src/**/*.js": true,
6+
"test/**/*.js": true,
7+
// "**/*.js.map": true,
8+
// "**/es": true,
9+
// "**/lib": true,
10+
// "**/amd": true,
11+
// "**/dts": true,
12+
// "**/temp": true,
13+
// "**/coverage": true,
14+
// "**/dist": true,
15+
// "**/docs": true,
16+
"type_definitions/**/*.js": true
17+
},
18+
"tslint.alwaysShowRuleFailuresAsWarnings": true,
19+
"tslint.autoFixOnSave": true,
20+
"typescript.tsdk": "./node_modules/typescript/lib",
21+
"vsicons.presets.angular": false
22+
}

0 commit comments

Comments
 (0)