Files
AFFiNE-Mirror/blocksuite/playground/apps/env.d.ts

29 lines
773 B
TypeScript

import type { EditorHost } from '@blocksuite/block-std';
import type { AffineEditorContainer } from '@blocksuite/presets';
import type { BlockSchema, Blocks, Workspace, Transformer } from '@blocksuite/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: AffineEditorContainer;
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>;
}
}