Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

canSplit

Check whether splitting at the given position is allowed.

function canSplit(
doc: Node,
pos: number,
depth?: number,
typesAfter?: (null | {
type: NodeType;
attrs?: Attrs | null;
}
)
[]
,
): boolean;
§
canSplit(doc: Node, pos: number, depth?: number, typesAfter?: (null | {
type: NodeType;
attrs?: Attrs | null;
}
)
[]
): boolean
[src]

§Parameters

§
pos: number
[src]
§
depth?: number optional
[src]
§
typesAfter?: (null | {
type: NodeType;
attrs?: Attrs | null;
}
)
[]
optional
[src]

§Return Type

§
boolean
[src]