Hi there - Thanks for your hard work on this - it's a lifesaver!
One potential snag I've run into is: on clone, QuestionDotTokens are stripped out meaning optional chaining doesn't work in the final, compiled code.
Example:
// original node
this.person?.hasEMailAddress?.emailAddress
...
// during transform
import { cloneNode } from "ts-clone-node";
...
cloneNode(node, { typescript: ts });
...
Cloned node:
this.person.hasEMailAddress.emailAddress
If you could take a look into this or point me in a direction, I'd be most obliged!
Hi there - Thanks for your hard work on this - it's a lifesaver!
One potential snag I've run into is: on clone, QuestionDotTokens are stripped out meaning optional chaining doesn't work in the final, compiled code.
Example:
Cloned node:
If you could take a look into this or point me in a direction, I'd be most obliged!