Skip to main content

isValueProcessorLegacy()

isValueProcessorLegacy(valueProcessor): valueProcessor is ValueProcessorLegacy

Used by formatQuery to determine whether the given value processor is a "legacy" value processor by counting the number of arguments. Legacy value processors take 3 arguments (not counting any arguments with default values), while rule-based value processors take no more than 2 arguments.

Parameters

ParameterType
valueProcessorValueProcessorLegacy | ValueProcessorByRule

Returns

valueProcessor is ValueProcessorLegacy

Defined in

packages/react-querybuilder/src/utils/formatQuery/utils.ts:148


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.