Jake Bailey

Results 1423 comments of Jake Bailey

Skimming through the repo, I'm noticing that it mainly consists of a shell script and a little python to pull info out of the mypy output. You might be able...

4.7 is now out of support and no longer tested, so this PR should be safe to revive with the most recent commit reverted.

Maybe your membership is hidden? ![image](https://github.com/DefinitelyTyped/DefinitelyTyped/assets/5341706/c31d8b5c-3537-4521-a285-30c33855f7e2)

I definitely don't see anything on your profile that indicates anything to do with this org

I still feel moderately confused as how this PR is needed; do you have some concrete motivating code I could look at? The lint rule is trying to steer the...

> I don't know what you mean by this. Can you explain? Any function that looks like this: ```ts function foo(): T ``` Is a hazard because it allows you...

But, maybe it's just plain unavoidable. Notably, ava forces you to do the cast: https://github.com/avajs/ava/blob/f8bf00cd988b5e981b6c7d87523a1e0c5dc947c0/examples/typescript-context/source/test.ts#L5

I'll take a harder look at the examples you put in the PR if they're complete, though I don't have a lot of time today/tomorrow to do so.

Right; you can pass in whatever you want so long as it fits the constraint. Now, that may be "fine" for a codebase like this where you're intending to lie...

For completeness, your snippet does work so long as the classes are not structurally identical: [Playground Link](https://www.typescriptlang.org/play/?#code/MYGwhgzhAEBCkFNoG8CwAoa0DEB9AXNGAHYCeA3BgL4aiQwDKArgEbQIAeALgsQCYx4EJGkw4CRMpXQ10dKNACCAJxYBLLsrDLSAYXALRWPIRIVqGDF1IAHJADEmxYAB4AKu268BcRAD5oAF5oAAouAAs1CEI3AEoggIA3AHs1PmkMADMnYC41ZOJoHgguXAB3LkyQ+KNoAHo66AZw5KYQPmgy5OUAawwsYAKS6EyARkJHZxdmFgDg7Oc8grDI6KbWGqoMsQamlraOzLA1EGhB4hKtNWIuCH6zoa4RgCYJnJcVdU1tPQMIOZGOSWxBWUUInw0Wh0+nom22WF2zVa7RGx1O50uxxudzEGKemQAzG8ppdrgBzAELXL5EERMHQUnEMlwyw7RoAOWSTwQiV4DIQIEyAFoMVEeDcAHRS+54kYAFmJrhmlKBNNBawh32hfxZMiAA)