MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / runtimeOperatorsFromLegacy

Function runtimeOperatorsFromLegacy

src/api/TaskNotesAPI.ts:3021–3030  ·  view source on GitHub ↗
(
	operators: readonly (FilterOperator | TaskNotesRuntimeOperator)[]
)

Source from the content-addressed store, hash-verified

3019}
3020
3021function runtimeOperatorsFromLegacy(
3022 operators: readonly (FilterOperator | TaskNotesRuntimeOperator)[]
3023): TaskNotesRuntimeOperator[] {
3024 const normalizedOperators = operators
3025 .map((operator) => normalizeRuntimeOperator(operator))
3026 .filter(isDefined);
3027 if (normalizedOperators.includes("eq")) normalizedOperators.push("in");
3028 if (normalizedOperators.includes("ne")) normalizedOperators.push("notIn");
3029 return Array.from(new Set(normalizedOperators));
3030}
3031
3032function operatorsForRuntimeValueType(
3033 valueType: TaskNotesRuntimeFieldDefinition["valueType"]

Callers 1

runtimeFilterPropertyFunction · 0.85

Calls 1

normalizeRuntimeOperatorFunction · 0.85

Tested by

no test coverage detected