(blockId: number)
| 35 | } |
| 36 | |
| 37 | export function formatBlockRef(blockId: number): string { |
| 38 | if (!Number.isInteger(blockId) || blockId < 1) { |
| 39 | throw new Error(`Invalid block ID: ${blockId}`) |
| 40 | } |
| 41 | return `b${blockId}` |
| 42 | } |
| 43 | |
| 44 | export function parseMessageRef(ref: string): number | null { |
| 45 | const normalized = ref.trim().toLowerCase() |
no outgoing calls
no test coverage detected