MCPcopy Create free account
hub / github.com/massCodeIO/massCode / get

Method get

src/main/import/notes/__tests__/persist.test.ts:21–33  ·  view source on GitHub ↗
(key?: string)

Source from the content-addressed store, hash-verified

19 }
20
21 get(key?: string): unknown {
22 if (!key) {
23 return this.state
24 }
25
26 return key.split('.').reduce<unknown>((acc, segment) => {
27 if (!acc || typeof acc !== 'object') {
28 return undefined
29 }
30
31 return (acc as Record<string, unknown>)[segment]
32 }, this.state)
33 }
34
35 set(key: string, value: unknown): void {
36 const segments = key.split('.')

Callers 10

index.tsFile · 0.45
previewObsidianImportFunction · 0.45
registerIPCFunction · 0.45
formatFunction · 0.45
reportThemeIssueFunction · 0.45
registerFsHandlersFunction · 0.45
registerSystemHandlersFunction · 0.45
registerSpacesHandlersFunction · 0.45
spaces.test.tsFile · 0.45
system.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected