You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
Activity
johnjenkins commentedon Jun 9, 2021
I think you'll need a new clonePropertyAccessChain method?
well, something like that anyway :D
wessberg commentedon Jun 11, 2021
Hey there. Nice catch. It has been fixed in v0.3.24