MCPcopy Index your code
hub / github.com/massCodeIO/massCode / set

Method set

src/main/store/__tests__/preferences.test.ts:83–90  ·  view source on GitHub ↗
(key: string | State, value?: unknown)

Source from the content-addressed store, hash-verified

81 }
82
83 set(key: string | State, value?: unknown): void {
84 if (typeof key === 'string') {
85 setByPath(this.state, key, value)
86 return
87 }
88
89 this.state = mergeState(this.state, key)
90 }
91
92 clear(): void {
93 this.state = {}

Callers 15

preload.tsFile · 0.45
saveWindowBoundsFunction · 0.45
index.tsFile · 0.45
getCurrencyRatesFunction · 0.45
refreshFiatRatesForcedFunction · 0.45
refreshCryptoRatesForcedFunction · 0.45
activateLicenseFunction · 0.45
validateStoredLicenseFunction · 0.45
notifyAboutUpdateFunction · 0.45
persistHttpImportResultFunction · 0.45
getFolderIdFunction · 0.45
ensureFolderFunction · 0.45

Calls 2

setByPathFunction · 0.85
mergeStateFunction · 0.85

Tested by

no test coverage detected