Convert some selectors to Typescript

This commit is contained in:
Bogdan
2023-07-29 03:13:40 +03:00
parent eee1be784b
commit cab50b35aa
13 changed files with 86 additions and 22 deletions
@@ -0,0 +1,14 @@
import { createSelector } from 'reselect';
import AppState from 'App/State/AppState';
import { isCommandExecuting } from 'Utilities/Command';
function createExecutingCommandsSelector() {
return createSelector(
(state: AppState) => state.commands.items,
(commands) => {
return commands.filter((command) => isCommandExecuting(command));
}
);
}
export default createExecutingCommandsSelector;