Function: isTypePredicateExpressionAutofixSafe()
isTypePredicateExpressionAutofixSafe(
node:Readonly<Expression>):boolean
Defined in: _internal/type-predicate-autofix-safety.ts:19
Determine whether a call-expression replacement to a type-predicate helper is safe to apply as an autofix.
Parametersโ
nodeโ
Readonly<Expression>
Returnsโ
boolean
Remarksโ
Type-predicate helpers (for example setHas) can change control-flow
narrowing in boolean guard expressions. This check intentionally disables
autofix in those contexts and leaves a diagnostic for manual review.