Inference failure in <T>(f: (get: () => T) => T) => T
#60929
Labels
Duplicate
An existing issue was already created
<T>(f: (get: () => T) => T) => T
#60929
π Search Terms
Similar/duplicate of #49618, #47599 & #30134. Sorry couldn't come up with a better title.
π Version & Regression Information
Tested with TypeScript 5.7.2
β― Playground Link
https://www.typescriptlang.org/play/?#code/CYUwxgNghgTiAEYD2A7AzgF0XKGQC54AeAFQD4AKAM0IoHMQNaBKeAXjPhNY6585IAoQREbwMABnbYQuEBQr94AImXNBAeg3x4APQD8w0VgwBGaWBx4KAfXadV6rToNA
π» Code
π Actual behavior
t1
is inferred asunknown
π Expected behavior
t1
should be inferred asstring
Additional information about the issue
This is a minimal reproduction of zustand's
create
...I'm certain this is a duplicate of one of the above mentioned issue I just want to know it's duplicate of which issue exactly
The text was updated successfully, but these errors were encountered: