refactor(editor): remove service global type (#10129)

Closes: [BS-2566](https://linear.app/affine-design/issue/BS-2566/remove-global-types-in-service)
This commit is contained in:
Saul-Mirone
2025-02-12 11:46:10 +00:00
parent 6730122108
commit e7cc710f8e
11 changed files with 14 additions and 77 deletions

View File

@@ -143,7 +143,6 @@ import {
PageRootBlockComponent,
PreviewRootBlockComponent,
type RootBlockConfig,
type RootService,
} from './root-block/index.js';
import { AIFinishTip } from './root-block/widgets/ai-panel/components/finish-tip.js';
import { GeneratingPlaceholder } from './root-block/widgets/ai-panel/components/generating-placeholder.js';
@@ -400,8 +399,5 @@ declare global {
interface BlockConfigs {
'affine:page': RootBlockConfig;
}
interface BlockServices {
'affine:page': RootService;
}
}
}