Commit 53b2c8e 1 parent febb84c commit 53b2c8e Copy full SHA for 53b2c8e
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,10 @@ export type Equals<A1, A2> =
71
71
: false ;
72
72
export type IsAny < T > = Equals < T , any > ;
73
73
export type Cast < A , B > = A extends B ? A : B ;
74
- // @TODO : Replace with native `NoInfer` when TS issue gets fixed:
75
- // https://github.com/microsoft/TypeScript/pull/57673
74
+ // @TODO : we can't use native `NoInfer` as we need those:
75
+ // https://github.com/microsoft/TypeScript/pull/61092
76
+ // https://github.com/microsoft/TypeScript/pull/61077
77
+ // but even with those fixes native NoInfer still doesn't work - further issues have to be reproduced and fixed
76
78
export type DoNotInfer < T > = [ T ] [ T extends any ? 0 : any ] ;
77
79
/** @deprecated Use the built-in `NoInfer` type instead */
78
80
export type NoInfer < T > = DoNotInfer < T > ;
You can’t perform that action at this time.
0 commit comments