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:
Saul-Mirone
2025-02-11 12:09:44 +00:00
parent 3062bd0771
commit dbf0f9dc20
45 changed files with 126 additions and 329 deletions
@@ -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;
});