Skip to main content

Function: getTypedRuleServices()

getTypedRuleServices(context: TypedRuleContext): TypedRuleServices

Defined in: _internal/typed-rule.ts:144

Retrieve parser services and type checker for typed rules.

Parametersโ€‹

contextโ€‹

TypedRuleContext

Rule context from the current lint evaluation.

Returnsโ€‹

TypedRuleServices

Parser services and type checker references bound to the current program.

Throwsโ€‹

Throws when parserServices.program is unavailable, which indicates the current lint run is not configured for type-aware analysis.