Skip to content

Commit bbb3bfb

Browse files
Accepted baselines.
1 parent 89a44a0 commit bbb3bfb

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
@@ -2867,6 +2867,7 @@ declare namespace ts {
28672867
suppressImplicitAnyIndexErrors?: boolean;
28682868
target?: ScriptTarget;
28692869
traceResolution?: boolean;
2870+
useUnknownInCatchVariables?: boolean;
28702871
resolveJsonModule?: boolean;
28712872
types?: string[];
28722873
/** 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
@@ -2867,6 +2867,7 @@ declare namespace ts {
28672867
suppressImplicitAnyIndexErrors?: boolean;
28682868
target?: ScriptTarget;
28692869
traceResolution?: boolean;
2870+
useUnknownInCatchVariables?: boolean;
28702871
resolveJsonModule?: boolean;
28712872
types?: string[];
28722873
/** Paths used to compute primary types search locations */
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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

4445
/* Module Resolution Options */
4546
// "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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

4445
/* Module Resolution Options */
4546
// "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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

4445
/* Module Resolution Options */
4546
// "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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

4445
/* Module Resolution Options */
4546
// "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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

4445
/* Module Resolution Options */
4546
// "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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

4445
/* Module Resolution Options */
4546
// "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
@@ -40,6 +40,7 @@
4040
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
4141
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
4242
// "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
43+
// "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
4344

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

0 commit comments

Comments
 (0)