Skip to main content

Function: getTypeCheckerBaseConstraintType()

function getTypeCheckerBaseConstraintType(
checker: Readonly<ts.TypeChecker>,
type: Readonly<ts.Type>
): Type | undefined;

Defined in: _internal/type-checker-compat.ts:134

Read checker.getBaseConstraintOfType when the host TypeScript version provides it.

Parametersโ€‹

checkerโ€‹

Readonly<ts.TypeChecker>

TypeScript type checker.

typeโ€‹

Readonly<ts.Type>

Candidate type.

Returnsโ€‹

Type | undefined

Base-constraint type when available; otherwise undefined.