improve options interface
This commit is contained in:
@@ -19,10 +19,10 @@ declare module '@tiptap/core' {
|
||||
}
|
||||
}
|
||||
|
||||
export const History = Extension.create({
|
||||
export const History = Extension.create<HistoryOptions>({
|
||||
name: 'history',
|
||||
|
||||
defaultOptions: <HistoryOptions>{
|
||||
defaultOptions: {
|
||||
depth: 100,
|
||||
newGroupDelay: 500,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user