mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Fixed formatting to fix the CI on main (#59801)
This commit is contained in:
committed by
GitHub
parent
eadb9e18f9
commit
0e292c441a
@@ -22056,7 +22056,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
||||
const [sourceType, targetType] = getTypeNamesForErrorDisplay(source, target);
|
||||
let generalizedSource = source;
|
||||
let generalizedSourceType = sourceType;
|
||||
|
||||
|
||||
// Don't generalize on 'never' - we really want the original type
|
||||
// to be displayed for use-cases like 'assertNever'.
|
||||
if (!(target.flags & TypeFlags.Never) && isLiteralType(source) && !typeCouldHaveTopLevelSingletonTypes(target)) {
|
||||
|
||||
Reference in New Issue
Block a user