with immer midderware, Array type wrong
alpacachen opened this issue · comments
alpacachen commented
an immer store, can't use Arrray.sort, but TS check escaped.
Link to reproduction
Check List
Please do not ask questions in issues.
- I've already opened a discussion before opening this issue, or already discussed in other media.
Please include a minimal reproduction.
- I've added a link to a typescript playground or codesandbox with a minimal reproduction.
Please check this if you're filing an issue regarding TypeScript.
- I've read the typescript guide, in particular that
create
is to be used ascreate<T>()(...)
and notcreate<T>(...)
.
alpacachen commented
expect TS checker can emit error correctly
Daishi Kato commented
Go to #2152