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
import{createSlice}from"@reduxjs/toolkit";exportdefaultcreateSlice({name: "hello",initialState: {},reducers: (create)=>({somePreparedReducer: create.preparedReducer((state: string)=>{return{payload: { state }};},(state,action)=>{state={something: action.payload};}),}),});
with a tsconfig of
{
"compilerOptions": {
"declaration": true
}
}
produces the following two errors
Default export of the module has or is using private name 'ReducerType'.ts(4082)
Default export of the module has or is using private name 'reducerDefinitionType'.ts(4082)
With declaration set to false, the error goes away, but that isn't workable since I am writing a library.