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

Function normalizeTemplateId

apps/desktop/src/main/vault.ts:813–817  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

811}
812
813function normalizeTemplateId(value: unknown): string | undefined {
814 if (typeof value !== 'string') return undefined
815 const trimmed = value.trim()
816 return trimmed || undefined
817}
818
819function normalizeDailyNoteLegacyPatterns(value: unknown): VaultSettings['dailyNotes']['legacyPatterns'] {
820 if (!Array.isArray(value)) return []

Callers 1

normalizeVaultSettingsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected