mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
`ThisParameterType<(...args: X) => void>` expands to `(...args: X) => void extends (this: infer U, ...args: any[]) => any`. When `X` is an unresolved type parameter it is not possible to determine that `any[]` is assignable to `X`. However `never` is always assignable to `X`, so we use that instead.