Skip to content

Commit 53b2c8e

Browse files
committed
Update comment related to DoNotInfer
1 parent febb84c commit 53b2c8e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/types.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ export type Equals<A1, A2> =
7171
: false;
7272
export type IsAny<T> = Equals<T, any>;
7373
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
7678
export type DoNotInfer<T> = [T][T extends any ? 0 : any];
7779
/** @deprecated Use the built-in `NoInfer` type instead */
7880
export type NoInfer<T> = DoNotInfer<T>;

0 commit comments

Comments
 (0)