Skip to content

Commit 27843d3

Browse files
committed
Try making the apparent type of unknown be unknown
1 parent bab02d2 commit 27843d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12304,7 +12304,7 @@ namespace ts {
1230412304
t.flags & TypeFlags.ESSymbolLike ? getGlobalESSymbolType(/*reportErrors*/ languageVersion >= ScriptTarget.ES2015) :
1230512305
t.flags & TypeFlags.NonPrimitive ? emptyObjectType :
1230612306
t.flags & TypeFlags.Index ? keyofConstraintType :
12307-
t.flags & TypeFlags.Unknown && !strictNullChecks ? emptyObjectType :
12307+
// t.flags & TypeFlags.Unknown && !strictNullChecks ? emptyObjectType :
1230812308
t;
1230912309
}
1231012310

0 commit comments

Comments
 (0)