(block: Block, updatedData: Partial<Block>)
| 8 | |
| 9 | // Temporary: Must find a dynic way to find out this types in case a custom text based block is also added. |
| 10 | export function updateBlockData(block: Block, updatedData: Partial<Block>) { |
| 11 | const updatedBlock = { ...block, ...updatedData }; |
| 12 | return updatedBlock; |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Inserts a new block ID into the given contentArray. |
no outgoing calls
no test coverage detected