Expose getBigIntLiteralType (#58887)
This commit is contained in:
Родитель
b1c52c53cc
Коммит
b63e5307ab
|
@ -1811,6 +1811,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
|||
getNumberType: () => numberType,
|
||||
getNumberLiteralType,
|
||||
getBigIntType: () => bigintType,
|
||||
getBigIntLiteralType,
|
||||
createPromiseType,
|
||||
createArrayType,
|
||||
getElementTypeOfArrayType,
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче