Closed as not planned
Description
π Search Terms
"generic", "conditional type", "is any", "implicit any", "error", "module has no export member"
π Version & Regression Information
- This changed between versions 5.4.5 and 5.5.4
β― Playground Link
π» Code
type IsAny<T> = 0 extends 1 & T ? true : false
declare module "some-module" {}
type ImplicitAny = typeof import("some-module").default
type Result = IsAny<ImplicitAny> // any
type ExpectedResult = IsAny<any> // true
type ExpectedResult2 = IsAny<{}> // false
π Actual behavior
The conditional type resolves to any
π Expected behavior
The conditional type should resolve to either TrueType or FalseType. In this specific example, it should resolve to true
Additional information about the issue
While I was unable to use every-ts
, after manually bisecting I've foudn that the first release with this buggy behaviour is 5.5.0-dev.20240524