MCPcopy Index your code
hub / github.com/xintaofei/codeg / storageKeyForDraftKeyV2

Function storageKeyForDraftKeyV2

src/lib/message-input-draft.ts:28–30  ·  view source on GitHub ↗
(draftKey: string)

Source from the content-addressed store, hash-verified

26}
27
28function storageKeyForDraftKeyV2(draftKey: string): string {
29 return `${STORAGE_PREFIX_V2}:${draftKey}`
30}
31
32/** A persisted v2 payload's `doc` is only trusted when it is a ProseMirror doc
33 * root (a non-array object whose `type` is "doc"); anything else (corrupt or

Callers 3

loadMessageInputDraftV2Function · 0.85
clearMessageInputDraftV2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected