property TransformationHookContext.ruleCount

Number of rules at the time the hook is called.

  • In beforeTransform hooks this equals the input rule count for the current transformation.
  • In onError hooks this equals the input count at the point of failure.
  • In afterTransform hooks this equals the output count; use inputCount / outputCount on the extended context instead for clarity.

Type

number

Usage

import { type TransformationHookContext } from ".";