mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
refactor(editor): remove unused any convension (#10410)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { registerAIEffects } from '@affine/core/blocksuite/ai/effects';
|
||||
import { effects as editorEffects } from '@affine/core/blocksuite/editors';
|
||||
import { editorEffects } from '@affine/core/blocksuite/editors';
|
||||
import { effects as bsEffects } from '@blocksuite/affine/effects';
|
||||
|
||||
import { registerTemplates } from './register-templates';
|
||||
|
||||
@@ -231,7 +231,7 @@ export const BlocksuiteDocEditor = forwardRef<
|
||||
if (typeof externalTitleRef === 'function') {
|
||||
externalTitleRef(el);
|
||||
} else {
|
||||
(externalTitleRef as any).current = el;
|
||||
externalTitleRef.current = el;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -23,7 +23,7 @@ export const LitEdgelessEditor = createReactComponentFromLit({
|
||||
elementClass: EdgelessEditor,
|
||||
});
|
||||
|
||||
export function effects() {
|
||||
export function editorEffects() {
|
||||
customElements.define('page-editor', PageEditor);
|
||||
customElements.define('edgeless-editor', EdgelessEditor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user