Skip to content

TEXT_OPERATORS

const TEXT_OPERATORS: readonly ["eq", "ne", "contains", "startsWith", "endsWith", "like", "ilike", "notIlike", "inArray", "notInArray", "isNull", "isNotNull"];

Defined in: filters/operators.ts:159

Every operator the text kind accepts (scalar + set + unary), for a UI operator picker. Same list as OPERATORS_BY_KIND.text.

Build a picker’s options

import { TEXT_OPERATORS } from "@xtandard/lib/filters";
const options = TEXT_OPERATORS.map((op) => ({ value: op, label: op }));
options.length; // → 12
(TEXT_OPERATORS as readonly string[]).includes("lt"); // → false