Skip to content

Commit ae828ce

Browse files
committed
Up blocks.ts
1 parent 7188629 commit ae828ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/blocks.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type grapesjs from 'grapesjs';
1+
import type { Editor, BlockProperties } from 'grapesjs';
22
import { PluginOptions } from '.';
33

4-
export default function(editor: grapesjs.Editor, opts: Required<PluginOptions>) {
4+
export default function(editor: Editor, opts: Required<PluginOptions>) {
55
const bm = editor.BlockManager;
66
const { category, blocks, stylePrefix, flexGrid, rowHeight, addBasicStyle } = opts;
77
const clsRow = `${stylePrefix}row`;
@@ -126,7 +126,7 @@ export default function(editor: grapesjs.Editor, opts: Required<PluginOptions>)
126126
const toAdd = (name: string) => blocks.indexOf(name) >= 0;
127127
const attrsRow = attrsToString(rowAttr);
128128
const attrsCell = attrsToString(colAttr);
129-
const commonBlockProps: Partial<grapesjs.BlockOptions> = {
129+
const commonBlockProps: Partial<BlockProperties> = {
130130
category,
131131
select: true,
132132
};

0 commit comments

Comments
 (0)