mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 18:16:15 +08:00
refactor(editor): remove block models global type (#10086)
This commit is contained in:
@@ -22,7 +22,7 @@ import type { BlockViewType } from '../spec/type.js';
|
||||
* ```
|
||||
*/
|
||||
export function BlockViewExtension(
|
||||
flavour: BlockSuite.Flavour,
|
||||
flavour: string,
|
||||
view: BlockViewType
|
||||
): ExtensionType {
|
||||
return {
|
||||
|
||||
@@ -20,7 +20,7 @@ import { ConfigIdentifier } from '../identifier.js';
|
||||
* ```
|
||||
*/
|
||||
export function ConfigExtension(
|
||||
flavor: BlockSuite.Flavour,
|
||||
flavor: string,
|
||||
config: Record<string, unknown>
|
||||
): ExtensionType {
|
||||
return {
|
||||
|
||||
@@ -21,7 +21,7 @@ import type { WidgetViewMapType } from '../spec/type.js';
|
||||
* });
|
||||
*/
|
||||
export function WidgetViewMapExtension(
|
||||
flavour: BlockSuite.Flavour,
|
||||
flavour: string,
|
||||
widgetViewMap: WidgetViewMapType
|
||||
): ExtensionType {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user