We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
lib.includes("dom")
1 parent 4dc677b commit 722b25cCopy full SHA for 722b25c
1 file changed
src/compiler/checker.ts
@@ -34454,7 +34454,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
34454
}
34455
34456
function containerSeemsToBeEmptyDomElement(containingType: Type) {
34457
- return (compilerOptions.lib && !compilerOptions.lib.includes("dom")) &&
+ return (compilerOptions.lib && !compilerOptions.lib.includes("lib.dom.d.ts")) &&
34458
everyContainedType(containingType, type => type.symbol && /^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(unescapeLeadingUnderscores(type.symbol.escapedName))) &&
34459
isEmptyObjectType(containingType);
34460
0 commit comments