How to determine what page item(s) are deleted using InDesign UXP?

Hi everyone, I’m trying to attach a deletion event listener to detect when a page item is deleted. Ideally, this event listener would also give me information about what page items were deleted. Here’s a basic snippet of what I have tried:

import { app } from 'indesign';
const handleDeleteEvent = (eventData) => {
	console.log('Deletion event detected: ', eventData);
}
app.addEventListener(Event.BEFORE_DELETE, handleDeleteEvent);
app.addEventListener(Event.AFTER_DELETE, handleDeleteEvent);

Ideally, I would be able to access something along the lines of eventData.target.id, but almost every property of eventData is just a reference error. For example, eventData.target looks like this: [Exception: Error: ReferenceError: Object is invalid at Event.invokeGetter (<anonymous>:6:32)]

Any information/suggestions would be greatly appreciated. Thanks in advance!