Skip to content

Commit 41423f0

Browse files
committed
Swap usages of {} to more correct unknown
1 parent 0265829 commit 41423f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ namespace ts {
13541354
/**
13551355
* Tests whether a value is an array.
13561356
*/
1357-
export function isArray(value: any): value is readonly {}[] {
1357+
export function isArray(value: any): value is readonly unknown[] {
13581358
return Array.isArray ? Array.isArray(value) : value instanceof Array;
13591359
}
13601360

src/services/shims.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ namespace ts {
541541
}
542542
}
543543

544-
function simpleForwardCall(logger: Logger, actionDescription: string, action: () => {}, logPerformance: boolean): {} {
544+
function simpleForwardCall(logger: Logger, actionDescription: string, action: () => unknown, logPerformance: boolean): unknown {
545545
let start: number | undefined;
546546
if (logPerformance) {
547547
logger.log(actionDescription);

0 commit comments

Comments
 (0)