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

Function buildTaskListSubPropertyScopePaths

src/bases/taskListGrouping.ts:155–168  ·  view source on GitHub ↗
(
	groupedTasks: ReadonlyMap<string, readonly TaskInfo[]>
)

Source from the content-addressed store, hash-verified

153}
154
155export function buildTaskListSubPropertyScopePaths(
156 groupedTasks: ReadonlyMap<string, readonly TaskInfo[]>
157): Map<string | null, string[]> {
158 const groupedPaths = new Map<string | null, string[]>();
159
160 for (const [groupKey, tasks] of groupedTasks) {
161 groupedPaths.set(
162 groupKey,
163 tasks.map((task) => task.path)
164 );
165 }
166
167 return groupedPaths;
168}
169
170export function buildTaskListGroupedRenderItems(options: {
171 groups: readonly TaskListGroup[];

Callers 2

Calls 1

setMethod · 0.65

Tested by

no test coverage detected