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

Function invertRuntimeOperator

src/api/TaskNotesAPI.ts:3276–3296  ·  view source on GitHub ↗
(
	operator: TaskNotesRuntimeOperator
)

Source from the content-addressed store, hash-verified

3274}
3275
3276function invertRuntimeOperator(
3277 operator: TaskNotesRuntimeOperator
3278): TaskNotesRuntimeOperator | null {
3279 const inverses: Partial<Record<TaskNotesRuntimeOperator, TaskNotesRuntimeOperator>> = {
3280 eq: "ne",
3281 ne: "eq",
3282 contains: "notContains",
3283 notContains: "contains",
3284 in: "notIn",
3285 notIn: "in",
3286 exists: "missing",
3287 missing: "exists",
3288 lt: "gte",
3289 lte: "gt",
3290 gt: "lte",
3291 gte: "lt",
3292 isTrue: "isFalse",
3293 isFalse: "isTrue",
3294 };
3295 return inverses[operator] ?? null;
3296}
3297
3298function applyRuntimeQueryScope(
3299 tasks: TaskInfo[],

Callers 1

invertRuntimePredicateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected