add history option interface

This commit is contained in:
Philipp Kühn
2020-04-13 22:32:39 +02:00
parent 186654df5f
commit 280730b261

View File

@@ -14,11 +14,19 @@ declare module '@tiptap/core/src/Editor' {
} }
} }
interface HistoryOptions {
historyPluginOptions?: Object,
}
export default class History extends Extension { export default class History extends Extension {
name = 'history' name = 'history'
defaultOptions() { constructor(options: HistoryOptions) {
super(options)
}
defaultOptions(): HistoryOptions {
return { return {
historyPluginOptions: {}, historyPluginOptions: {},
} }