(block: PlanContentBlock)
| 35 | type BlockWithType = { type: string } |
| 36 | |
| 37 | export function toPlanContentBlock(block: PlanContentBlock): PlanContentBlock { |
| 38 | return JSON.parse(JSON.stringify(block)) as PlanContentBlock |
| 39 | } |
| 40 | |
| 41 | function cloneBlock<T>(block: T): T { |
| 42 | return JSON.parse(JSON.stringify(block)) as T |
no test coverage detected