You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Export RTK-owned Draft and WritableDraft types #5516
Inferred types for slices and RTKQ cache updaters reference Immer's internal draft types (for example WritableNonArrayDraft). When an app or library emits declarations, TypeScript either writes an import of Immer internals into the .d.ts or fails because it can't name the type. Kibana ran into this (elastic/kibana#282216).
We should export our own Draft and WritableDraft types from RTK and use them in our public signatures, so declaration output only references @reduxjs/toolkit. Add a declaration-emit fixture test that fails if an Immer type name shows up in the output.
Activity
createApistructure and extensions #5491