We removed the explicit return newState statements from all six reducers in node.slice.ts to fix a TS4023 TypeScript compilation error introduced by the lock file update upgrading immer to 11.1.16. In that version, WritableNonArrayDraft is no longer publicly exported, so TypeScript could not name it when generating declaration files for the exported nodeSlice variable whose reducers returned Draft<T> values. Converting to mutation-only (void) reducers — the canonical RTK/immer pattern — removes the inferred Draft<T> return type and eliminates the dependency on the unexported internal type.
This code change can't be applied
A fix is available, but it can't be applied automatically because the branch is outdated. Please sync the branch, then apply the fix locally below.
Self-Healing CI
Classification: Code change needed
Fix generated
Verification timed out
Commit"fix(davinci-client): use void reducers to resolve immer TS4023 error"
1 file changed
−11