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

Function createDefaultStatsFilters

src/views/StatsView.ts:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78]);
79
80function createDefaultStatsFilters(): StatsFilters {
81 return {
82 dateRange: "all",
83 selectedProjects: [],
84 minTimeSpent: 0,
85 };
86}
87
88function isStatsDateRange(value: unknown): value is StatsFilters["dateRange"] {
89 return typeof value === "string" && STATS_DATE_RANGES.has(value as StatsFilters["dateRange"]);

Callers 4

normalizeStatsFiltersFunction · 0.85
StatsViewClass · 0.85
loadPersistedFiltersMethod · 0.85
renderFiltersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected