R
fn

withContent

tested

Return a copy of `node` with new content.

Signature

ts
export function withContent(node: Node, content: Content): Node{ ... }

Parameters

ParameterTypeDescription
nodeNode
contentContent

Returns

Node