mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
17bf75e843
Closes: [BS-2216](https://linear.app/affine-design/issue/BS-2216/remove-global-types-in-command)
21 lines
634 B
TypeScript
21 lines
634 B
TypeScript
import { SurfaceBlockComponent } from './surface-block.js';
|
|
import { SurfaceBlockVoidComponent } from './surface-block-void.js';
|
|
import type { SurfaceBlockModel } from './surface-model.js';
|
|
import type { SurfaceBlockService } from './surface-service.js';
|
|
|
|
export function effects() {
|
|
customElements.define('affine-surface-void', SurfaceBlockVoidComponent);
|
|
customElements.define('affine-surface', SurfaceBlockComponent);
|
|
}
|
|
|
|
declare global {
|
|
namespace BlockSuite {
|
|
interface BlockServices {
|
|
'affine:surface': SurfaceBlockService;
|
|
}
|
|
interface BlockModels {
|
|
'affine:surface': SurfaceBlockModel;
|
|
}
|
|
}
|
|
}
|