MCPcopy Index your code
hub / github.com/gitify-app/gitify / getMenuItemConfigByLabel

Function getMenuItemConfigByLabel

src/main/menu.test.ts:63–71  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

61
62 /** Helper: find MenuItem config captured via our tracking array by label */
63 const getMenuItemConfigByLabel = (label: string) =>
64 menuItemInstances.find((item) => item.label === label) as
65 | {
66 label?: string;
67 enabled?: boolean;
68 visible?: boolean;
69 click?: () => void;
70 }
71 | undefined;
72
73 /** Lightweight type describing the (subset) of fields we inspect on template items */
74 type TemplateItem = {

Callers 1

menu.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected