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

Function getBasesDataGetter

src/ui/taskCardPropertyAccess.ts:34–43  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

32}
33
34function getBasesDataGetter(value: unknown): BasesDataWithGetter | null {
35 if (
36 value !== null &&
37 typeof value === "object" &&
38 typeof (value as { getValue?: unknown }).getValue === "function"
39 ) {
40 return value as BasesDataWithGetter;
41 }
42 return null;
43}
44
45const PROPERTY_EXTRACTORS: Record<string, (task: TaskInfo) => unknown> = {
46 due: (task) => task.due,

Callers 1

getTaskCardPropertyValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected