MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / set

Method set

packages/utilities/src/storage.ts:22–29  ·  view source on GitHub ↗
(key: string, input: string | object)

Source from the content-addressed store, hash-verified

20 }
21
22 set(key: string, input: string | object) {
23 try {
24 const value = typeof input === 'object' ? JSON.stringify(input) : input;
25 return window[`${this.type}Storage`].setItem(key, value);
26 } catch (exception) {
27 return null;
28 }
29 }
30
31 remove(key: string) {
32 try {

Callers 15

storage.spec.tsFile · 0.45
MatrixFunction · 0.45
ConfigurationsPageFunction · 0.45
ChannelsPageFunction · 0.45
handlerFunction · 0.45
postMessageFunction · 0.45
postReplyFunction · 0.45
fetchConversationsFunction · 0.45
fetchMessageFunction · 0.45
fetchTeamInfoFunction · 0.45
fetchFileFunction · 0.45
fetchRepliesTypedFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected