mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-17 00:34:47 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user