exclude type and editor from schema callback

This commit is contained in:
Philipp Kühn
2020-09-09 17:22:59 +02:00
parent 0973845608
commit 39082b9b99
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ interface MarkCallback<Options> {
export interface MarkExtends<Callback, Options> extends ExtensionExtends<Callback, Options> {
topMark: boolean
schema: (params: Callback) => MarkSpec
schema: (params: Omit<Callback, 'type' | 'editor'>) => MarkSpec
}
export default class Mark<

View File

@@ -11,7 +11,7 @@ interface NodeCallback<Options> {
export interface NodeExtends<Callback, Options> extends ExtensionExtends<Callback, Options> {
topNode: boolean
schema: (params: Callback) => NodeSpec
schema: (params: Omit<Callback, 'type' | 'editor'>) => NodeSpec
}
export default class Node<