import { ContentBlock } from './contentBlock' ; import { Block , createBlock } from './block' ; type TextBlock = ContentBlock & { type : 'text' ; } ; function createTextBlock ( block ? ) { return { ... createBlock ( block ) , type : 'text' , } ; } export { TextBlock , createTextBlock } ;