mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Expose getBigIntLiteralType (#58887)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user