mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-21 18:22:58 -05:00
fix(45417): show inlay hints for null and literal-like identifiers (#45426)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -7367,4 +7367,9 @@ namespace ts {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export function isInfinityOrNaNString(name: string | __String): boolean {
|
||||
return name === "Infinity" || name === "-Infinity" || name === "NaN";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user