export default class {
public static async execute(
state: mage.core.IState,
{ userId, password }: any
) {
return UserModule.login(state, userId, password);
}
}
This will break because MAGE will not know what name to give to the destructured variable.