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

Function isOverrideEnabled

packages/shared-domain/src/overrides.ts:26–32  ·  view source on GitHub ↗
(
  enabled: Record<string, string> | undefined,
  name: string
)

Source from the content-addressed store, hash-verified

24 * of a hand-edited config that wrote an explicit off-ish value.
25 */
26export function isOverrideEnabled(
27 enabled: Record<string, string> | undefined,
28 name: string
29): boolean {
30 const v = enabled?.[name]
31 return v !== undefined && v !== 'off' && v !== 'false' && v !== '0' && v !== ''
32}
33
34/**
35 * Visual tweaks — the no-code companion to overrides. A small UI lets users

Callers 3

overrides.test.tsFile · 0.90
SettingsModalFunction · 0.90
injectOverridesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected