[@types/prosemirror-transform] Fix canSplit type (#39380)

* fix canSplit

* update version

* revert version update
This commit is contained in:
ocavue 2019-11-01 22:51:17 +08:00 committed by Jesse Trinity
parent aa561f1dfa
commit db42458e8a

View File

@ -532,7 +532,7 @@ export function canSplit<S extends Schema = any>(
doc: ProsemirrorNode<S>,
pos: number,
depth?: number,
typesAfter?: Array<{ type: NodeType<S>; attrs?: { [key: string]: any } | null }>
typesAfter?: Array<{ type: NodeType<S>; attrs?: { [key: string]: any } | null } | null | undefined>
): boolean;
/**
* Test whether the blocks before and after a given position can be