Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bbb3bfb

Browse filesBrowse files
Accepted baselines.
1 parent 89a44a0 commit bbb3bfb
Copy full SHA for bbb3bfb

22 files changed

+217Lines changed: 217 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
+1Lines 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 */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/api/typescript.d.ts
+1Lines 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 */
Collapse file
+5Lines 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+
}
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Default initialized TSConfig/tsconfig.json
+1Lines 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). */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Initialized TSConfig with advanced options/tsconfig.json
+1Lines 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). */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json
+1Lines 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). */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Initialized TSConfig with enum value compiler options/tsconfig.json
+1Lines 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). */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Initialized TSConfig with files options/tsconfig.json
+1Lines 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). */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json
+1Lines 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). */
Collapse file

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

Copy file name to clipboardExpand all lines: tests/baselines/reference/tsConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.