MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / lookupMappingKey

Function lookupMappingKey

tests/unit/bases/taskListDropPlanning.test.ts:8–15  ·  view source on GitHub ↗
(property: string)

Source from the content-addressed store, hash-verified

6import type { FieldMapping, TaskInfo } from "../../../src/types";
7
8const lookupMappingKey = (property: string): keyof FieldMapping | null => {
9 const mappings: Partial<Record<string, keyof FieldMapping>> = {
10 status: "status",
11 contexts: "contexts",
12 priority: "priority",
13 };
14 return mappings[property] ?? null;
15};
16
17const isListTypeProperty = (property: string): boolean =>
18 ["contexts", "projects", "tags"].includes(property);

Callers 2

lookupMappingKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected