Update state and reducer typings

This commit is contained in:
Labhansh Agrawal 2021-03-05 21:33:35 +05:30
parent 6199f1b025
commit aa9a50e8f9
8 changed files with 75 additions and 100 deletions

View file

@ -1,7 +1,6 @@
import {ITermState} from '../hyper';
import {Immutable} from 'seamless-immutable';
export default function findBySession(termGroupState: Immutable<ITermState>, sessionUid: string) {
export default function findBySession(termGroupState: ITermState, sessionUid: string) {
const {termGroups} = termGroupState;
return Object.keys(termGroups)
.map((uid) => termGroups[uid])