Bruce Pascoe
Bruce Pascoe
Oh, I see, the `number` argument of the callback corresponds with the third parameter of `setTImeout` in the example, I was thinking that was part of the setTimeout machinery itself....
> In terms of determining which is the "real" discriminant, there's not really a principled way to pick one over the other. Shouldn't it always pick `tag` as the discriminant...
Keep in mind that, assuming this proposed syntax *does* create methods, TS would likely treat them bivariantly, meaning you could potentially unsoundly assign a `CatHandler` to a `DogAndCatHandler` (I bring...
It’s because you used the issue template for 9998 duplicates, this isn’t that (did the read the text in the template before you deleted it?). In fact there are no...
https://github.com/microsoft/TypeScript/issues/52415 is very similar but not an exact duplicate. See also https://github.com/microsoft/TypeScript/pull/41587 which is probably what's needed to fix this.
See also https://github.com/microsoft/TypeScript/pull/16344, a PR which sought to implement this but seems to have fallen through (it’s now closed).
There are no hard-and-fast rules for how type aliases are expanded or not in type display. It's sort of a black art as types can get arbitrarily complex (the type...
> It's a pain to install Wait, it's not included in a stock Windows install anymore?
If it makes a difference (seems unlikely but you never know), this was tested with a static (`SHARED=0`) build of Allegro.
> I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. I love the irony that a maintainer was forced to check this...