I can define types for destructured function arguments in TypeScript:
import { state, myAction } from "store/types";
type Args = {
state: state;
action: myAction;
};
const move = ({ state, action }: Args) => {
However can you specify the types inline? So something like:
const move = ({ state: state, actionL: actionMoveExerciseUp }) => {