How to pass event and argument to AgGrid event?

My AgGrid is running a function on the onCellEdited event:

<template>
<AgGridVue
    :rowData="rows"
    :columnDefs="columns"
    :gridOptions="defaultOptions"
    @onCellEdited="onCellEdited"
  />
</template>

<script setup>
import AgGridVue from '@/components/AgGridVue.vue'

function onCellEdited(params){
  console.log(params)
}
</script>

I need this function to capture the event and an additional argument. I’ve tried doing this:

<template>
<AgGridVue
    :rowData="rows"
    :columnDefs="columns"
    :gridOptions="defaultOptions"
    @onCellEdited="event => onCellEdited(event, 'myargument')"
  />
</template>

<script setup>
import AgGridVue from '@/components/AgGridVue.vue'

function onCellEdited(params, arg){
  console.log(params, arg)
}
</script>

but the argument is always returning undefined. How can I make this work?