Skip to content

Commit b63e530

Browse files
authored
Expose getBigIntLiteralType (#58887)
1 parent b1c52c5 commit b63e530

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/compiler/checker.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
18111811
getNumberType: () => numberType,
18121812
getNumberLiteralType,
18131813
getBigIntType: () => bigintType,
1814+
getBigIntLiteralType,
18141815
createPromiseType,
18151816
createArrayType,
18161817
getElementTypeOfArrayType,

src/compiler/types.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5132,6 +5132,7 @@ export interface TypeChecker {
51325132
getNumberType(): Type;
51335133
getNumberLiteralType(value: number): NumberLiteralType;
51345134
getBigIntType(): Type;
5135+
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
51355136
getBooleanType(): Type;
51365137
/* eslint-disable @typescript-eslint/unified-signatures */
51375138
/** @internal */

tests/baselines/reference/api/typescript.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6196,6 +6196,7 @@ declare namespace ts {
61966196
getNumberType(): Type;
61976197
getNumberLiteralType(value: number): NumberLiteralType;
61986198
getBigIntType(): Type;
6199+
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
61996200
getBooleanType(): Type;
62006201
getFalseType(): Type;
62016202
getTrueType(): Type;

0 commit comments

Comments
 (0)