mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08: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 { 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 { effects as bsEffects } from '@blocksuite/affine/effects';
|
||||||
|
|
||||||
import { registerTemplates } from './register-templates';
|
import { registerTemplates } from './register-templates';
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ export const BlocksuiteDocEditor = forwardRef<
|
|||||||
if (typeof externalTitleRef === 'function') {
|
if (typeof externalTitleRef === 'function') {
|
||||||
externalTitleRef(el);
|
externalTitleRef(el);
|
||||||
} else {
|
} else {
|
||||||
(externalTitleRef as any).current = el;
|
externalTitleRef.current = el;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const LitEdgelessEditor = createReactComponentFromLit({
|
|||||||
elementClass: EdgelessEditor,
|
elementClass: EdgelessEditor,
|
||||||
});
|
});
|
||||||
|
|
||||||
export function effects() {
|
export function editorEffects() {
|
||||||
customElements.define('page-editor', PageEditor);
|
customElements.define('page-editor', PageEditor);
|
||||||
customElements.define('edgeless-editor', EdgelessEditor);
|
customElements.define('edgeless-editor', EdgelessEditor);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user