chore(editor): fix imports in legacy tests (#10300)

This commit is contained in:
Saul-Mirone
2025-02-20 03:30:05 +00:00
parent e0b2b2b33c
commit c3fc0a0d88
119 changed files with 96 additions and 90 deletions

View File

@@ -0,0 +1,25 @@
import type { EditorHost } from '@blocksuite/block-std';
import type { AffineEditorContainer } from '@blocksuite/presets';
import type { Store, Transformer, Workspace } from '@blocksuite/store';
declare global {
interface Window {
/** Available on playground window
* the following instance are initialized in `packages/playground/apps/starter/main.ts`
*/
$blocksuite: {
store: typeof import('@blocksuite/store');
blocks: typeof import('@blocksuite/blocks');
global: {
utils: typeof import('@blocksuite/global/utils');
};
editor: typeof import('@blocksuite/presets');
blockStd: typeof import('@blocksuite/block-std');
};
collection: Workspace;
doc: Store;
editor: AffineEditorContainer;
host: EditorHost;
job: Transformer;
}
}