• Construct a TextNode. The text content is positional since it is the defining attribute; everything else (id, style, margin, mask, ...) goes in the optional second argument.

    Parameters

    • text: string
    • Optional args: Omit<TextNode, "text" | "type">

    Returns TextNode