Wesley Wigham
Wesley Wigham
> this means eliminating these barrel imports from files So this is a style argument, really. Imo, you're _supposed_ to import from the barrel files for everything other than your...
We should probably just `getApparentType` on the module type, to resolve primitives to the structured object type backing them - that way you can pull out `toString` if you really...
Hm. Yeah, makes sense I guess, since `any` and `unknown` are their own apparent type (while `symbol` and the like have global interface types). Seeing the `ns` in `import *...
Hm, it's a bit awkward in your case, since we _technically_ never directly discover that `react-router` is directly visible from your project folder (our symlink discovery is a bit heuristic...
> At the very least, it would be useful to have a setting in tsconfig.json for the TS compiler to make pkg B fail compilation unless const obj = obj_() ...
> My understanding of declaration: true is that a *.d.ts file is created. It would be great to navigate directly to the *.ts source. Also set `declarationMap: true`.
Partially? The last bit where `.constructor` should be compiler inferred is a dupe of that, for sure. But in the immediate future, we should fix our `lib.d.ts` files so that...
Technically, if the shapes are different, every entrypoint should have a separate types entry. So, more like ```json ".": { "require": { "types": "./lib/types/index.d.ts", "default": "./lib/index.js" }, "import": { "types":...
If you're not generating your types from your js (which ts does support) and you're not actively testing your types (as is done on DT), DT is probably a better...
We discussed this at today's design meeting. One work item is adding the ability to set a command line option to `null` on the command line (just like you can...