Jake Bailey
Jake Bailey
sorta kinda like #56072
This is an experimental addition to `c8`, but works really well. The v8 HTML page it outputs can load checker.ts without batting an eye, and has sub-expression fidelity and can...
Split out of #51921 to constrain it to more valuable changes.
I noticed this while working on cleaning up our (inconsistent) use of the binary search and ordered insert APIs. The binary search API requires that you have comparisons of _exactly_...
This leaves only files in the repo root without types, which will eventually be fixed in ts-eslint v8 with the ProjectService.
Not final; I'm not totally sure I want to add this dependency (it's kinda big).
Wacky test built on #55326 which makes `tsc` use the public API. Curious how bad the perf of this is. The below represents effectively the smallest our package is going...
I wish we had allow-failure to make this more reasonable, but bun is getting stabler so this may be okay.
See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#sort_stability Also, `toSorted` seems to be sightly slower than `arr.slice().sort()`; was hoping to also rename `sort` to `toSorted` and conditionally use it, but probably not worth it yet.
For #51188 Profiling gave me this big chunk:  `getPropertiesOfUnionOrIntersectionType` is the biggest chunk. What I noticed was that `getReducedType` didn't actually need all of the properties; all it wants...