mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-16 05:47:09 +08:00
chore(editor): fix imports in legacy tests (#10300)
This commit is contained in:
25
blocksuite/tests-legacy/e2e/utils/declare-test-window.ts
Normal file
25
blocksuite/tests-legacy/e2e/utils/declare-test-window.ts
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user