fix(45417): show inlay hints for null and literal-like identifiers (#45426)

This commit is contained in:
Oleksandr T
2021-08-13 21:31:47 +03:00
committed by GitHub
parent fe7962af3d
commit dfd84ec0b2
5 changed files with 112 additions and 10 deletions

View File

@@ -26311,10 +26311,6 @@ namespace ts {
return isTypeAssignableToKind(checkComputedPropertyName(name), TypeFlags.NumberLike);
}
function isInfinityOrNaNString(name: string | __String): boolean {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
function isNumericLiteralName(name: string | __String) {
// The intent of numeric names is that
// - they are names with text in a numeric form, and that

View File

@@ -7367,4 +7367,9 @@ namespace ts {
}
return false;
}
/* @internal */
export function isInfinityOrNaNString(name: string | __String): boolean {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
}