title: Problem with expected 0 arguments, but got 1 in Redux Toolkit
body: <p>I have an error <code>Expected 0 arguments, but got 1.</code> in simple Redux Slice file.</p>
  <p>This error occurs when I try to dispatch.</p>
  <p><strong>App.tsx</strong></p>
  <pre><code>useEffect(() =&gt; {
      dispatch(getMovies({ query: &quot;searchQuery&quot;, page: 1 }));
    }, []);
  </code></pre>
  <p><strong>Slice.tsx</strong></p>
  <pre><code>const movieSlice = createSlice({
    name: &quot;movie&quot;,
    initialState,
    reducers: {
      getMovies(name) {
        return name;
      },
      setMovies: (state, action: PayloadAction&lt;Movie[]&gt;) =&gt; {
        state.moviesList = action.payload;
      },
    },
  });
  
  export const {
    getMovies,
    setMovies,
  } = movieSlice.actions;
  </code></pre>
  <p>Where is the problem? Where to state that getMovies can accept an object as an argument?</p>
  <p>Thanks</p>