Skip to content

Commit

Permalink
feat(60475): Add getUnknownType to checker api (#60502)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-tarasyuk authored Jan 17, 2025
1 parent 7901a39 commit 32e8f8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
getNumberLiteralType,
getBigIntType: () => bigintType,
getBigIntLiteralType,
getUnknownType: () => unknownType,
createPromiseType,
createArrayType,
getElementTypeOfArrayType,
Expand Down
1 change: 1 addition & 0 deletions src/compiler/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5263,6 +5263,7 @@ export interface TypeChecker {
getBigIntType(): Type;
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
getBooleanType(): Type;
getUnknownType(): Type;
/* eslint-disable @typescript-eslint/unified-signatures */
/** @internal */
getFalseType(fresh?: boolean): Type;
Expand Down
1 change: 1 addition & 0 deletions tests/baselines/reference/api/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6288,6 +6288,7 @@ declare namespace ts {
getBigIntType(): Type;
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
getBooleanType(): Type;
getUnknownType(): Type;
getFalseType(): Type;
getTrueType(): Type;
getVoidType(): Type;
Expand Down

0 comments on commit 32e8f8b

Please sign in to comment.