Improve wording for the "Typing query and mutation `endpoints`" section of the docs (#1371)
Improve wording for the "Typing query and mutation `endpoints`" section of the docs (#1371)

- added a case when `query` doesn't have parameter
- added a case when `query` has an optional parameter
reduxjs/redux-toolkit,reduxjs/redux-toolkit