Fix broken user and docker tests (#42431)

* Add --force to npm install script for user tests

* Migrate prettier to docker

* Fix vscode Dockerfile

* Fix stack space issue in isJSLiteralType

* Use --legacy-peer-deps based on npm version

* Fix xterm.js Dockerfile
This commit is contained in:
Ron Buckton
2021-01-22 13:23:41 -08:00
committed by GitHub
parent 80dfc6a45b
commit ee3fe472d7
7 changed files with 25 additions and 27 deletions

View File

@@ -14109,7 +14109,8 @@ namespace ts {
return some((type as IntersectionType).types, isJSLiteralType);
}
if (type.flags & TypeFlags.Instantiable) {
return isJSLiteralType(getResolvedBaseConstraint(type));
const constraint = getResolvedBaseConstraint(type);
return constraint !== type && isJSLiteralType(constraint);
}
return false;
}