MCPcopy
hub / github.com/coder/mux / has

Method has

src/browser/stores/MapStore.ts:71–73  ·  view source on GitHub ↗

* Check if key has been bumped (has versioned state). * Returns false for keys that were only get() without bump().

(key: K)

Source from the content-addressed store, hash-verified

69 * Returns false for keys that were only get() without bump().
70 */
71 has(key: K): boolean {
72 return this.versions.has(key);
73 }
74
75 /**
76 * Bump version for a key, invalidating cache and notifying subscribers.

Callers 15

JSXOpeningElementFunction · 0.45
handleKeyDownInternalFunction · 0.45
hasChildrenFunction · 0.45
computeSidebarTaskGroupsFunction · 0.45
handleStorageFunction · 0.45
ProjectSidebarInnerFunction · 0.45
renderWorkspaceFunction · 0.45

Calls

no outgoing calls

Tested by 3

createMockLocalStorageFunction · 0.36
createIsConfiguredFunction · 0.36