(raw: unknown)
| 26 | * `type:` field keep working, files with unknown types degrade gracefully. |
| 27 | */ |
| 28 | export 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). |