Expose getBigIntLiteralType (#58887)

This commit is contained in:
Jake Bailey
2024-06-17 11:25:43 -07:00
committed by GitHub
parent b1c52c53cc
commit b63e5307ab
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -1811,6 +1811,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
getNumberType: () => numberType,
getNumberLiteralType,
getBigIntType: () => bigintType,
getBigIntLiteralType,
createPromiseType,
createArrayType,
getElementTypeOfArrayType,
+1
View File
@@ -5132,6 +5132,7 @@ export interface TypeChecker {
getNumberType(): Type;
getNumberLiteralType(value: number): NumberLiteralType;
getBigIntType(): Type;
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
getBooleanType(): Type;
/* eslint-disable @typescript-eslint/unified-signatures */
/** @internal */
+1
View File
@@ -6196,6 +6196,7 @@ declare namespace ts {
getNumberType(): Type;
getNumberLiteralType(value: number): NumberLiteralType;
getBigIntType(): Type;
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
getBooleanType(): Type;
getFalseType(): Type;
getTrueType(): Type;