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

Method onConfigChange

packages/bridge-contract/src/bridge.ts:264–264  ·  view source on GitHub ↗

Subscribe to external edits of the config file (e.g. a synced dotfile or * a hand-edit). The callback receives the new portable config.

(cb: (next: AppConfigPortable) => void)

Source from the content-addressed store, hash-verified

262 /** Subscribe to external edits of the config file (e.g. a synced dotfile or
263 * a hand-edit). The callback receives the new portable config. */
264 onConfigChange(cb: (next: AppConfigPortable) => void): () => void
265 /** User themes loaded from `~/.config/zennotes/themes/<slug>/`. Empty on web. */
266 listCustomThemes(): Promise<CustomTheme[]>
267 /** Absolute path of the custom-themes directory, or null when unsupported. */

Callers 1

initConfigSyncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected