Document events with JSDoc.