mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05: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.