Open w0nche0l opened 4 years ago
Not implemented yet. Will do soon!
Temporary workaround when using Babel (should work fine with TS compiler) is to change this:
nameof<A>(a => a.optObject?.propertyA)
To this:
nameof<A>(a => a.optObject!.propertyA)
By the way, @w0nche0l, I am happy the library has been useful for you. Thank for the compliments! 🙂
ah i completely forgot about the !. operator, that should work for now!
I have an interface that looks like this:
and I'm trying to get the name "propertyA" by doing:
nameof<A>(a => a.optObject?.propertyA)
but I'm getting the following error:
Unhandled node type (OptionalMemberExpression) in text: f.writerSettings?.autoSave
Am I doing this wrong or is optional chaining members not supported currently?
Also, thank you so much for this library, it makes refactoring typescript 1000% easier, easily one of the best libraries I've worked with.