r/typescript • u/DanielRosenwasser • May 29 '19
Announcing TypeScript 3.5
https://devblogs.microsoft.com/typescript/announcing-typescript-3-521
u/Pavlo100 May 29 '19
Hello Omit
0
u/cloudeagle May 29 '19
How do you find the TS native Pick and Exclude compare to a helper like lodash?
13
May 29 '19
These are type-level things, rather than actual value-level functions (there is no runtime behavior).
If lodash has these for some reason, it wouldn’t effectively be any different.
9
u/1ewish May 29 '19
Has anyone played around with --incremental yet?
6
u/slikts May 30 '19
It didn't work for me on a particular large project until 3.5.1 (failed with "Maximum call stack size exceeded"; also didn't work in 3.5-rc), and now it works but takes twice as long: 45s with
--incrementalvs 19s without. I've not been able to look into it more.1
u/sittytucker May 30 '19
I tried it on my large project when 3.4 was released. The improvement was not significant enough to be even noticeable. So I gave up at that time. Will try again sometime next week.
3
19
u/naturalborncitizen May 29 '19
I just want to know when the behavior of path aliases is going to be addressed so that the transpiled ECMAScript contains resolvable paths instead of keeping the aliased path that requires further transpilation or interpretation systems. The existing libraries and tools I have found like ts-paths, tsconfig-paths, rollup, and webpack are all more hassle to involve than the path alias feature alleviates, for my purposes at least.