Skip to content

Commit 4c09bd3

Browse files
Accepted baselines.
1 parent 475e201 commit 4c09bd3

File tree

22 files changed

+217
-0
lines changed

22 files changed

+217
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,6 +2868,7 @@ declare namespace ts {
28682868
suppressImplicitAnyIndexErrors?: boolean;
28692869
target?: ScriptTarget;
28702870
traceResolution?: boolean;
2871+
useUnknownInCatchVariables?: boolean;
28712872
resolveJsonModule?: boolean;
28722873
types?: string[];
28732874
/** Paths used to compute primary types search locations */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,6 +2868,7 @@ declare namespace ts {
28682868
suppressImplicitAnyIndexErrors?: boolean;
28692869
target?: ScriptTarget;
28702870
traceResolution?: boolean;
2871+
useUnknownInCatchVariables?: boolean;
28712872
resolveJsonModule?: boolean;
28722873
types?: string[];
28732874
/** Paths used to compute primary types search locations */
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"useUnknownInCatchVariables": true
4+
}
5+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
4343
// "noPropertyAccessFromIndexSignature": true, /* Require undeclared properties from index signatures to use element accesses. */
44+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4445

4546
/* Module Resolution Options */
4647
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */

0 commit comments

Comments
 (0)