mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
29 lines
804 B
TypeScript
29 lines
804 B
TypeScript
import type { EditorHost } from '@blocksuite/affine/block-std';
|
|
import type { TestAffineEditorContainer } from '@blocksuite/integration-test';
|
|
import type { BlockSchema, Blocks, Workspace, Transformer } from '@blocksuite/affine/store';
|
|
import type { z } from 'zod';
|
|
import type * as Y from 'yjs';
|
|
|
|
declare global {
|
|
type HTMLTemplate = [
|
|
string,
|
|
Record<string, unknown>,
|
|
...(HTMLTemplate | string)[],
|
|
];
|
|
|
|
interface Window {
|
|
editor: TestAffineEditorContainer;
|
|
doc: Blocks;
|
|
collection: Workspace;
|
|
blockSchemas: z.infer<typeof BlockSchema>[];
|
|
job: Transformer;
|
|
Y: typeof Y;
|
|
std: typeof std;
|
|
host: EditorHost;
|
|
testWorker: Worker;
|
|
|
|
wsProvider: ReturnType<typeof setupBroadcastProvider>;
|
|
bcProvider: ReturnType<typeof setupBroadcastProvider>;
|
|
}
|
|
}
|