(property: string)
| 6 | import type { FieldMapping, TaskInfo } from "../../../src/types"; |
| 7 | |
| 8 | const 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 | |
| 17 | const isListTypeProperty = (property: string): boolean => |
| 18 | ["contexts", "projects", "tags"].includes(property); |
no outgoing calls
no test coverage detected