Refactor <FavouritedStatuses> and <BookmarkedStatuses> into TypeScript (#34356)

This commit is contained in:
Eugen Rochko 2025-04-08 18:06:31 +02:00 committed by GitHub
commit 6a39f00745
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 249 additions and 234 deletions

View file

@ -96,6 +96,7 @@ const removeOneFromList = (state, listType, status) => {
return state.updateIn([listType, 'items'], (list) => list.delete(status.get('id')));
};
/** @type {import('@reduxjs/toolkit').Reducer<typeof initialState>} */
export default function statusLists(state = initialState, action) {
switch(action.type) {
case FAVOURITED_STATUSES_FETCH_REQUEST: