mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
26 lines
818 B
TypeScript
26 lines
818 B
TypeScript
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;
|
|
}
|
|
}
|