From 54bbd8a8616f3e325e90f2664dfd774c38a64e83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Sun, 27 Sep 2020 21:29:51 +0200 Subject: [PATCH] refactoring --- packages/extension-history/index.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/extension-history/index.ts b/packages/extension-history/index.ts index ef2ceed0..3401b4e9 100644 --- a/packages/extension-history/index.ts +++ b/packages/extension-history/index.ts @@ -13,8 +13,8 @@ declare module '@tiptap/core/src/Editor' { } export interface HistoryOptions { - depth: any, - newGroupDelay: any, + depth: number, + newGroupDelay: number, } export default new Extension() @@ -37,9 +37,6 @@ export default new Extension() 'Shift-Mod-z': () => editor.redo(), })) .plugins(({ options }) => [ - history({ - ...options.depth, - ...options.newGroupDelay, - }), + history(options), ]) .create()