mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-24 13:17:10 +08:00
refactor(editor): remove global types in edgeless (#10092)
Closes: [BS-2553](https://linear.app/affine-design/issue/BS-2553/remove-global-types-in-edgeless)
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
EdgelessRootBlockComponent,
|
||||
GroupElementModel,
|
||||
NoteBlockModel,
|
||||
SurfaceElementModel,
|
||||
} from '@blocksuite/blocks';
|
||||
import type { BlockModel, Store } from '@blocksuite/store';
|
||||
import { beforeEach, describe, expect, test } from 'vitest';
|
||||
@@ -852,7 +853,7 @@ test('the actual rendering z-index should satisfy the logic order of their index
|
||||
});
|
||||
|
||||
describe('index generator', () => {
|
||||
let preinsertedShape: BlockSuite.SurfaceElementModel;
|
||||
let preinsertedShape: SurfaceElementModel;
|
||||
let preinsertedNote: NoteBlockModel;
|
||||
|
||||
beforeEach(() => {
|
||||
@@ -863,7 +864,7 @@ describe('index generator', () => {
|
||||
|
||||
preinsertedShape = service.crud.getElementById(
|
||||
shapeId
|
||||
)! as BlockSuite.SurfaceElementModel;
|
||||
)! as SurfaceElementModel;
|
||||
preinsertedNote = service.crud.getElementById(noteId)! as NoteBlockModel;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user