Create a link & HyperLinkTarget

Could anyone help me how to use a HyperlinkTarget object to put a link on a Textnode that links to an different node on that page (like a different Text, Frame, Shape,…)

I have no idea how to use the code snippet below :confused:

type HyperlinkTarget = {
    type: "URL" | "NODE"
    value: string
node.hyperlink = {type: "NODE", value: "0:1"}

Where 0:1 is the id of the node.

1 Like

Thank you very much! :raised_hands: