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 {
name = 'history'
constructor(options: HistoryOptions) {
super(options)
}
defaultOptions() {
defaultOptions(): HistoryOptions {
return {
historyPluginOptions: {},
}