schlechtenburg/packages/paragraph/lib/util.ts

11 lines
216 B
TypeScript
Raw Normal View History

2022-03-11 17:23:14 +00:00
export interface IParagraphData {
2020-05-24 20:00:14 +00:00
value: string;
2020-05-24 20:39:14 +00:00
align: string;
2020-05-24 20:00:14 +00:00
}
2022-12-28 18:46:51 +00:00
export const getDefaultData: (data?: Partial<IParagraphData>) => IParagraphData = (data = {}) => ({
2020-05-24 20:39:14 +00:00
value: '',
align: 'left',
2022-12-28 18:46:51 +00:00
...data,
2020-05-24 20:39:14 +00:00
});