JS-IPFS Events in Typescript

I am working through various tutorials / documentation for a TS project using JS-IPFS.

I can’t seem to figure out or find anything on how to listen to events. For example I’ve seen things like:

const node = await IPFS.create(ipfsOptions);
node.on(“someevent”, …) // on doesn’t exist on the ipfs type
node.libp2p.on(“peer:connect”, …); // libp2p isn’t on the ipfs type either

Any guidance on how to listen to js-ipfs events in Typescript?