(record: FlowRecord)
| 472 | const flowKeyName = (key: string): string => key.slice(0, key.indexOf('\0')); |
| 473 | |
| 474 | function serializeRecord(record: FlowRecord): string { |
| 475 | return JSON.stringify({ flows: record.flows, written: [...record.written].map(([name, files]) => [name, [...files]]) }); |
| 476 | } |
| 477 | |
| 478 | /** The record `raw` holds; null for none, or for one this can't read. */ |
| 479 | function parseRecord(raw: string | null): FlowRecord | null { |