Trying to write a declaration for redux toolkit\'s createSlice. Having trouble creating a declaration that takes in an object that reads one of it\'s own keys with a functio