R
fn

withAttrs

tested

Return a copy of `node` with new attrs.

Signature

ts
export function withAttrs(node: Node, attrs: Attrs): Node{ ... }

Parameters

ParameterTypeDescription
nodeNode
attrsReadonly<Record<string, import("./attrs").AttrValue>>

Returns

Node