(block: BlockWithType | undefined)
| 43 | } |
| 44 | |
| 45 | function isPlanDraftBlock(block: BlockWithType | undefined): block is PlanDraftContentBlock { |
| 46 | return block?.type === 'plan_draft' && typeof (block as { text?: unknown }).text === 'string' |
| 47 | } |
| 48 | |
| 49 | export function appendPlanDraftDelta<T extends BlockWithType>( |
| 50 | blocks: readonly T[], |
no outgoing calls
no test coverage detected