MCPcopy Index your code
hub / github.com/tinyplex/tinybase / construct

Function construct

src/persisters/common/partykit.ts:16–23  ·  view source on GitHub ↗
(
  prefix: string,
  type: MessageType | StorageKeyType,
  payload: any,
)

Source from the content-addressed store, hash-verified

14export const PUT = 'PUT';
15
16export const construct = (
17 prefix: string,
18 type: MessageType | StorageKeyType,
19 payload: any,
20): string =>
21 prefix +
22 type +
23 (isString(payload) ? payload : jsonStringWithUndefined(payload));
24
25export const deconstruct = (
26 prefix: string,

Callers 3

setPersistedFunction · 0.90
broadcastChangesFunction · 0.90
constructStorageKeyFunction · 0.90

Calls 2

isStringFunction · 0.90
jsonStringWithUndefinedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…