(value: unknown)
| 32 | } |
| 33 | |
| 34 | function 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 | |
| 45 | const PROPERTY_EXTRACTORS: Record<string, (task: TaskInfo) => unknown> = { |
| 46 | due: (task) => task.due, |
no outgoing calls
no test coverage detected