Function: getConstrainedTypeAtLocationWithFallback()
getConstrainedTypeAtLocationWithFallback(
checker:Readonly<ts.TypeChecker>,node:Readonly<Node>,parserServices:ConstrainedTypeParserServices,reason:string):Type|undefined
Defined in: _internal/constrained-type-at-location.ts:43
Resolve a node type using getConstrainedTypeAtLocation when available, then
fall back to checker + node-map based resolution.
Parametersโ
checkerโ
Readonly<ts.TypeChecker>
Type checker used for fallback type lookups.
nodeโ
Readonly<Node>
ESTree node whose type should be resolved.
parserServicesโ
Parser services with node mapping and optional typed helpers.
reasonโ
string
Stable diagnostics reason fragment for safe-type wrappers.
Returnsโ
Type | undefined
The constrained type when resolvable; otherwise undefined.