schlechtenburg/packages/core/lib/block-helpers.ts
2021-03-08 16:29:35 +01:00

16 lines
238 B
TypeScript

import { v4 as uuidv4 } from 'uuid';
export const generateBlockId = uuidv4;
export const model = {
prop: 'block',
event: 'update',
};
export const blockProps = {
blockId: {
type: String,
default: generateBlockId,
},
};