lab
lab copied to clipboard
removing error truncation from types module
This helps when debugging error messages if they´re too long.
I see. I searched for anything resembling a discussion about that in the typescript repo and found nothing, which is pretty weird. Not sure what ot think about it too.
I'll ask in our TypeScript slack channel just in case someone knows better.
FWIW I couldn't not find any explanation for the deprecation in the TS repo either. I wonder if it's not a documentation error. 🤔
Hmm, the deprecation was introduced in the docs with https://github.com/microsoft/TypeScript-Website/commit/d65e30fe5473656bc34da45f4454259ee29224e7. It can now be found here, listed under Things we should document, but really want to help move people away from.
I think that is about all the reasoning you are going to get.
Not sure how they are going to move people away from an option that has no alternative =P
Thanks @kanongil, I failed to find the information. 🙂
I believe that's something you'd need only in specific cases perhaps that's the reasoning behind it. I don't mind if we choose to add it to be honest. Let's see what other think about it. It will just make it more verbose for every TS users. Perhaps that's something we could add behind a command-line flag (not entirely sure though, I didn't dig through it).
Hiding it behind a command-line flag sounds reasonable, I can do that if we decide to move foward with it.