R
fn

createNode

tested

Construct a {@link Node}, generating an id when not supplied.

Signature

ts
export function createNode(type: string, options: CreateNodeOptions ={ ... }

Parameters

ParameterTypeDescription
typestring
options?CreateNodeOptions

Returns

Node