I need createElement parameter turn to (targetNode: LexicalNode) => ElementNode
Because I have some node with custom properties just like a paragraph with pinOnMap, when I want it turn to heading, the pinOnMap property is lost.
I need targetNode in createElement function's input parameters list, so I can read it and set to new node.