We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a228e1 commit 151faaeCopy full SHA for 151faae
src/compiler/checker.ts
@@ -21428,7 +21428,6 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
21428
return !!((type.flags & TypeFlags.Union ? (type as UnionType).types[0] : type).flags & TypeFlags.Undefined);
21429
}
21430
21431
-
21432
function containsNonMissingUndefinedType(type: Type) {
21433
const candidate = type.flags & TypeFlags.Union ? (type as UnionType).types[0] : type;
21434
return !!(candidate.flags & TypeFlags.Undefined) && candidate !== missingType;
0 commit comments