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

replaceStep

‘Fit’ a slice into a given position in the document, producing a step that inserts it. Will return null if there's no meaningful way to insert the slice here, or inserting it would be a no-op (an empty slice over an empty range).

function replaceStep(
doc: Node,
from: number,
to?: number,
slice?: Slice,
): Step | null;
§
replaceStep(doc: Node, from: number, to?: number, slice?: Slice): Step | null
[src]

§Parameters

§
from: number
[src]
§
to?: number optional
[src]
§
slice?: Slice optional
[src]

§Return Type