Line 3 reports Type parameter 'T' has a circular constraint. (2313)
since TS 5.4 which can be fixed with NoInfer
import type {IfAny} from "type-fest";
function foo<T extends IfAny<T, never, string>>( arg: T ): string;
function fooN<T extends IfAny<NoInfer<T>, never, string>>( arg: T ): string;
Is this something that can be fixed by IfAny internally to avoid having to change 100s of places where it reports this error since TS 5.4 in our codebase?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too