fix(editor): type import in vite worker env (#10856)

The dependencies of `@blocksuite/affine-gfx-turbo-renderer` in work is now all type imports.
This commit is contained in:
doodlewind
2025-03-14 10:22:58 +00:00
parent 17d4fef721
commit d8dfea6ccf
4 changed files with 26 additions and 28 deletions

View File

@@ -1,10 +1,10 @@
import {
type BlockLayout,
type BlockLayoutPainter,
BlockLayoutPainterExtension,
type TextRect,
type WorkerToHostMessage,
import type {
BlockLayout,
BlockLayoutPainter,
TextRect,
WorkerToHostMessage,
} from '@blocksuite/affine-gfx-turbo-renderer';
import { BlockLayoutPainterExtension } from '@blocksuite/affine-gfx-turbo-renderer/painter';
interface SentenceLayout {
text: string;