Ryan Cavanaugh

Results 446 comments of Ryan Cavanaugh
trafficstars

There are three ways you can determine what's going on: * Run `--showConfig`, which is always going to correctly show the computed config * Read the source code and see...

> The quick fix should produce working code. What's the correct code in this case?

This is the intended behavior of module resolution. If other people encounter this with some frequency we could think about some new option to change module resolution, but it'd be...

#1805 was the prior incarnation of this

There has to be a better way, right? How does this package get used in practice?

It seems like the list of names/languages is so large that we should just use a wildcard declare here

Marking as draft per https://github.com/DefinitelyTyped/DefinitelyTyped/pull/70346#issuecomment-2301488691; undraft whenever appropriate. Thanks!

I don't feel like this change is well-motivated enough to merge as-is. It seems like it's just detecting the repro in the linked issue and doing something else when it...

Discussed a bit with @jamiebuilds offline. Some key scenarios and questions to resolve: ```ts declare const ra: Record; if (Object.hasOwn(ra, "foo")) { ra.foo; // should be 'any' } declare const...