Ryan Cavanaugh

Results 456 comments of Ryan Cavanaugh

The problem here is that we don't have a type to give the object literal (or rather, no means of generating the type that isn't combinatorially explosive). If you wrote...

It's actually quite common to hit the depth limiter in sound code that can't be written any other way.

> I would suggest changing the default behavior of depth-limiting to be an error We tried that, of course. The places where it's practical (from a user perspective) to error...

Our inference algorithm is based on doing a fixed number of passes to collect inference candidates (see also #30134 which proposes that we use an unbounded number of passes). In...

@jkillian that's a bug caused by the binding pattern (aka destructuring). I think it's reported already but can't find it at the moment - can you log a new issue?

> I get the feeling that typescript requires modules to be in node_module You specified `moduleResolution: node` in the tsconfig, and node requires modules to be in node_modules. For this...

People can already augment the `Map` interface themselves with a non-null-returning signature for `get` if they want to assume they're doing the right thing at all times (though if we...

Our best guess is that approximately everyone wants to use double-quotes here and we can just hardcode it. Does anyone disagree?

I think the specific case of disallowing spreading a `Promise` is very unobjectionable -- it's extremely obviously a mistake, and a refactoring hazard when asyncifying a sync function. A rule...

> BTW, is the reason behind this not being supported performance? Could it get potentially out of hand due to recursion? Or would it lead to much greater complexity on...