Skip to content

Commit 7f6a846

Browse files
Prepare tests for --noImplicitAny (#62989)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a586c34 commit 7f6a846

File tree

2,034 files changed

+2049
-12
lines changed

Some content is hidden

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

2,034 files changed

+2049
-12
lines changed

tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInline.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ instance.methodName({member: 12});
7474
//// [/home/src/workspaces/project/tsconfig.json]
7575
{
7676
"compilerOptions": {
77+
"strict": false,
7778
"outDir": "./dist",
7879
"inlineSourceMap": true,
7980
"declaration": true,
@@ -101,6 +102,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : {
101102
"/home/src/workspaces/project/index.ts"
102103
],
103104
"options": {
105+
"strict": false,
104106
"outDir": "/home/src/workspaces/project/dist",
105107
"inlineSourceMap": true,
106108
"declaration": true,
@@ -181,7 +183,7 @@ Info seq [hh:mm:ss:mss] Files (4)
181183
/home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text
182184
/home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text
183185
/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text
184-
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
186+
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
185187

186188

187189
../../tslibs/TS/Lib/lib.d.ts

tests/baselines/reference/tsserver/fourslashServer/declarationMapsEnableMapping_NoInlineSources.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ instance.methodName({member: 12});
7474
//// [/home/src/workspaces/project/tsconfig.json]
7575
{
7676
"compilerOptions": {
77+
"strict": false,
7778
"outDir": "./dist",
7879
"inlineSourceMap": true,
7980
"inlineSources": true,
@@ -102,6 +103,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : {
102103
"/home/src/workspaces/project/index.ts"
103104
],
104105
"options": {
106+
"strict": false,
105107
"outDir": "/home/src/workspaces/project/dist",
106108
"inlineSourceMap": true,
107109
"inlineSources": true,
@@ -183,7 +185,7 @@ Info seq [hh:mm:ss:mss] Files (4)
183185
/home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text
184186
/home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text
185187
/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text
186-
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
188+
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"inlineSourceMap\": true,\n \"inlineSources\": true,\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
187189

188190

189191
../../tslibs/TS/Lib/lib.d.ts

tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ instance.methodName({member: 12});
7474
//// [/home/src/workspaces/project/tsconfig.json]
7575
{
7676
"compilerOptions": {
77+
"strict": false,
7778
"outDir": "./dist",
7879
"declaration": true,
7980
"declarationMap": true,
@@ -100,6 +101,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : {
100101
"/home/src/workspaces/project/index.ts"
101102
],
102103
"options": {
104+
"strict": false,
103105
"outDir": "/home/src/workspaces/project/dist",
104106
"declaration": true,
105107
"declarationMap": true,
@@ -179,7 +181,7 @@ Info seq [hh:mm:ss:mss] Files (4)
179181
/home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text
180182
/home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text
181183
/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text
182-
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
184+
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
183185

184186

185187
../../tslibs/TS/Lib/lib.d.ts

tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ instance.methodName({member: 12});
7777
//// [/home/src/workspaces/project/tsconfig.json]
7878
{
7979
"compilerOptions": {
80+
"strict": false,
8081
"outDir": "./dist",
8182
"sourceMap": true,
8283
"sourceRoot": "/home/src/workspaces/project/",
@@ -105,6 +106,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : {
105106
"/home/src/workspaces/project/index.ts"
106107
],
107108
"options": {
109+
"strict": false,
108110
"outDir": "/home/src/workspaces/project/dist",
109111
"sourceMap": true,
110112
"sourceRoot": "/home/src/workspaces/project/",
@@ -186,7 +188,7 @@ Info seq [hh:mm:ss:mss] Files (4)
186188
/home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text
187189
/home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text
188190
/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text
189-
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
191+
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceMap\": true,\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
190192

191193

192194
../../tslibs/TS/Lib/lib.d.ts

tests/baselines/reference/tsserver/fourslashServer/declarationMapsGeneratedMapsEnableMapping3.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ instance.methodName({member: 12});
7474
//// [/home/src/workspaces/project/tsconfig.json]
7575
{
7676
"compilerOptions": {
77+
"strict": false,
7778
"outDir": "./dist",
7879
"sourceRoot": "/home/src/workspaces/project/",
7980
"declaration": true,
@@ -101,6 +102,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspaces/project/tsconfig.json : {
101102
"/home/src/workspaces/project/index.ts"
102103
],
103104
"options": {
105+
"strict": false,
104106
"outDir": "/home/src/workspaces/project/dist",
105107
"sourceRoot": "/home/src/workspaces/project/",
106108
"declaration": true,
@@ -167,11 +169,11 @@ Info seq [hh:mm:ss:mss] event:
167169
"diagnostics": [
168170
{
169171
"start": {
170-
"line": 4,
172+
"line": 5,
171173
"offset": 9
172174
},
173175
"end": {
174-
"line": 4,
176+
"line": 5,
175177
"offset": 21
176178
},
177179
"text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.",
@@ -196,7 +198,7 @@ Info seq [hh:mm:ss:mss] Files (4)
196198
/home/src/tslibs/TS/Lib/lib.d.ts Text-1 lib.d.ts-Text
197199
/home/src/tslibs/TS/Lib/lib.decorators.d.ts Text-1 lib.decorators.d.ts-Text
198200
/home/src/tslibs/TS/Lib/lib.decorators.legacy.d.ts Text-1 lib.decorators.legacy.d.ts-Text
199-
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
201+
/home/src/workspaces/project/tsconfig.json SVC-1-0 "{\n \"compilerOptions\": {\n \"strict\": false,\n \"outDir\": \"./dist\",\n \"sourceRoot\": \"/home/src/workspaces/project/\",\n \"declaration\": true,\n \"declarationMap\": true,\n \"newLine\": \"lf\",\n },\n \"files\": [\"/home/src/workspaces/project/index.ts\"],\n}"
200202

201203

202204
../../tslibs/TS/Lib/lib.d.ts
@@ -442,11 +444,11 @@ Info seq [hh:mm:ss:mss] event:
442444
"diagnostics": [
443445
{
444446
"start": {
445-
"line": 4,
447+
"line": 5,
446448
"offset": 9
447449
},
448450
"end": {
449-
"line": 4,
451+
"line": 5,
450452
"offset": 21
451453
},
452454
"text": "Option 'sourceRoot can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.",

tests/baselines/reference/tsserver/fourslashServer/declarationMapsGoToDefinitionSameNameDifferentDirectory.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ class Button extends Control {
6565
"$schema": "http://json.schemastore.org/tsconfig",
6666
"compileOnSave": true,
6767
"compilerOptions": {
68+
"strict": false,
6869
"sourceMap": true,
6970
"declaration": true,
7071
"declarationMap": true
@@ -201,6 +202,7 @@ Info seq [hh:mm:ss:mss] Config: /tests/cases/fourslash/server/buttonClass/tscon
201202
"/tests/cases/fourslash/server/BaseClass/Source.d.ts"
202203
],
203204
"options": {
205+
"strict": false,
204206
"sourceMap": true,
205207
"declaration": true,
206208
"declarationMap": true,

tests/cases/compiler/ClassDeclaration10.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @strict: false
12
class C {
23
constructor();
34
foo();

tests/cases/compiler/ClassDeclaration13.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @strict: false
12
class C {
23
foo();
34
bar() { }

tests/cases/compiler/ClassDeclaration14.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @strict: false
12
class C {
23
foo();
34
constructor();

tests/cases/compiler/ClassDeclaration15.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @strict: false
12
class C {
23
foo();
34
constructor() { }

0 commit comments

Comments
 (0)