Extend frappe.ui.form.SuccessAction

Hi all,

I am trying to Extend the SuccessAction but returning error is not a Function!
What am i not doing well please ?

frappe.ui.form.SuccessAction = frappe.ui.form.SuccessAction.$extend({
get_actions: function() {
console.log(‘Actions to done…’);
}
});

Here is the solution

frappe.ui.form.SuccessAction = class SuccessAction extends frappe.ui.form.SuccessAction{
get_actions: function() {
console.log(‘Actions to done…’);
}
};