diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 80b61edd3657a..5eb14081e2a3c 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -1824,6 +1824,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { getNumberLiteralType, getBigIntType: () => bigintType, getBigIntLiteralType, + getUnknownType: () => unknownType, createPromiseType, createArrayType, getElementTypeOfArrayType, diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 4a92c3187045f..ad915af32ee83 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -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; diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index 4b4404634fdaa..2f7870cfad96f 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -6288,6 +6288,7 @@ declare namespace ts { getBigIntType(): Type; getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType; getBooleanType(): Type; + getUnknownType(): Type; getFalseType(): Type; getTrueType(): Type; getVoidType(): Type;