From 280730b2610a3d541318dae2510cfc9117d185ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 13 Apr 2020 22:32:39 +0200 Subject: [PATCH] add history option interface --- packages/extension-history/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/extension-history/index.ts b/packages/extension-history/index.ts index 489cb2cd..13b8e732 100644 --- a/packages/extension-history/index.ts +++ b/packages/extension-history/index.ts @@ -14,11 +14,19 @@ declare module '@tiptap/core/src/Editor' { } } +interface HistoryOptions { + historyPluginOptions?: Object, +} + export default class History extends Extension { name = 'history' + + constructor(options: HistoryOptions) { + super(options) + } - defaultOptions() { + defaultOptions(): HistoryOptions { return { historyPluginOptions: {}, }