MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / weeklyNoteLocationForDate

Function weeklyNoteLocationForDate

packages/app-core/src/lib/vault-layout.ts:851–857  ·  view source on GitHub ↗
(
  date = new Date(),
  settings: VaultSettings | null | undefined
)

Source from the content-addressed store, hash-verified

849}
850
851export function weeklyNoteLocationForDate(
852 date = new Date(),
853 settings: VaultSettings | null | undefined
854): WeeklyNoteLocation {
855 const normalized = normalizeVaultSettings(settings)
856 return weeklyNoteLocationForPattern(date, normalized, currentWeeklyNotePattern(normalized))
857}
858
859export interface DateNoteInfo {
860 kind: 'daily' | 'weekly'

Callers 3

store.tsFile · 0.90
findWeeklyNoteForDateFunction · 0.85

Calls 3

currentWeeklyNotePatternFunction · 0.85
normalizeVaultSettingsFunction · 0.70

Tested by

no test coverage detected