Ben Kraft
Ben Kraft
The fixer has a tendency to create inline imports, whereas toplevel imports are almost always more readable. And the code already exists, it's just a matter of using it. I...
### 🔎 Search Terms isolatedDeclarations autofix fix imports ### 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries...
```ts type State = | { loaded: true; type: "loader"; value: string } | { loaded: false; type: "loader" } | { type: "other" }; declare class Store { state:...
Given this code: ```ts declare function compact(array: ArrayLike): T[]; type MyEnum = "a" | "b" | "c"; const myArray = ["a", "b"] as const; export function f() { const _:...
As of today's nightly: ```ts declare function compact(array: T[]): T[]; declare function makeFooer(): Fooer; interface Fooer { foo: (v: string) => string; } function f() { const _ = compact([makeFooer(),...
This prevented us from using modern tsconfig, because while our repo is on 5.7.2, our vercel build ends up running on 4.9.5, which is ooooold. Some npm overrides ultimately let...
We have some package (in our case `@sentry/browser`) installed two places in our tree (in our case, two different npm workspaces which npm in its infinite wisdom did not figure...
### Version 29.5.0/main ### Steps to reproduce 1. Have a large codebase, with many test files that import much of the codebase. 2. Run the tests with the v8 coverage...
Alternate approach to fixing #402 -- I haven't fully checked if I think this is correct yet either but figured it was at least useful to put up as a...