MCPcopy
hub / github.com/codeaashu/claude-code / parseMemoryType

Function parseMemoryType

src/memdir/memoryTypes.ts:28–31  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

26 * `type:` field keep working, files with unknown types degrade gracefully.
27 */
28export function parseMemoryType(raw: unknown): MemoryType | undefined {
29 if (typeof raw !== 'string') return undefined
30 return MEMORY_TYPES.find(t => t === raw)
31}
32
33/**
34 * `## Types of memory` section for COMBINED mode (private + team directories).

Callers 1

scanMemoryFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected