schlechtenburg/packages/paragraph/lib/util.ts

11 lines
216 B
TypeScript

export interface IParagraphData {
value: string;
align: string;
}
export const getDefaultData: (data?: Partial<IParagraphData>) => IParagraphData = (data = {}) => ({
value: '',
align: 'left',
...data,
});