Skip to content

Commit 18bc659

Browse files
committed
test: Update baseline test files for implicitUnknown
1 parent c53ccac commit 18bc659

File tree

16 files changed

+28
-0
lines changed

16 files changed

+28
-0
lines changed

tests/baselines/reference/api/tsserverlibrary.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,8 @@ declare namespace ts {
25052505
emitDecoratorMetadata?: boolean;
25062506
experimentalDecorators?: boolean;
25072507
forceConsistentCasingInFileNames?: boolean;
2508+
/** Changes the implicit type from `any` to `unknown`. */
2509+
implicitUnknown?: boolean;
25082510
importHelpers?: boolean;
25092511
inlineSourceMap?: boolean;
25102512
inlineSources?: boolean;
@@ -8050,6 +8052,8 @@ declare namespace ts.server.protocol {
80508052
emitDecoratorMetadata?: boolean;
80518053
experimentalDecorators?: boolean;
80528054
forceConsistentCasingInFileNames?: boolean;
8055+
/** Changes the implicit type from `any` to `unknown`. */
8056+
implicitUnknown?: boolean;
80538057
importHelpers?: boolean;
80548058
inlineSourceMap?: boolean;
80558059
inlineSources?: boolean;

tests/baselines/reference/api/typescript.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -2505,6 +2505,8 @@ declare namespace ts {
25052505
emitDecoratorMetadata?: boolean;
25062506
experimentalDecorators?: boolean;
25072507
forceConsistentCasingInFileNames?: boolean;
2508+
/** Changes the implicit type from `any` to `unknown`. */
2509+
implicitUnknown?: boolean;
25082510
importHelpers?: boolean;
25092511
inlineSourceMap?: boolean;
25102512
inlineSources?: boolean;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"implicitUnknown": true
4+
}
5+
}

tests/baselines/reference/transpile/Supports setting implicitUnknown.js

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

tests/baselines/reference/transpile/Supports setting implicitUnknown.oldTranspile.js

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

tests/baselines/reference/transpile/Supports setting noImplicitAny and implicitUnknown.js

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

tests/baselines/reference/transpile/Supports setting noImplicitAny and implicitUnknown.oldTranspile.js

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

tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

tests/baselines/reference/tsConfig/Initialized TSConfig with list compiler options/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
/* Strict Type-Checking Options */
2626
"strict": true, /* Enable all strict type-checking options. */
2727
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
// "implicitUnknown": true, /* Use unknown as implicit type. */
2829
// "strictNullChecks": true, /* Enable strict null checks. */
2930
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
3031
// "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */

0 commit comments

Comments
 (0)