From e61521c858945c6af4246713575219188c3ab164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 30 Sep 2021 09:38:57 +0200 Subject: [PATCH] refactoring --- packages/core/src/types.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 712528b1..a0d6f129 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -40,14 +40,14 @@ export type MaybeReturnType = T extends (...args: any) => any : T export interface EditorEvents { - beforeCreate: { editor: Editor } - create: { editor: Editor } - update: { editor: Editor, transaction: Transaction } - selectionUpdate: { editor: Editor, transaction: Transaction } - transaction: { editor: Editor, transaction: Transaction } - focus: { editor: Editor, event: FocusEvent, transaction: Transaction } - blur: { editor: Editor, event: FocusEvent, transaction: Transaction } - destroy: void + beforeCreate: { editor: Editor }, + create: { editor: Editor }, + update: { editor: Editor, transaction: Transaction }, + selectionUpdate: { editor: Editor, transaction: Transaction }, + transaction: { editor: Editor, transaction: Transaction }, + focus: { editor: Editor, event: FocusEvent, transaction: Transaction }, + blur: { editor: Editor, event: FocusEvent, transaction: Transaction }, + destroy: void, } export interface EditorOptions {