* Get the event description. * * @returns {Object} Description of the event as an object.
()
| 38 | * @returns {Object} Description of the event as an object. |
| 39 | */ |
| 40 | asEventDescription(): Event.EventDescription { |
| 41 | const description: Event.EventDescription = { |
| 42 | [this.name]: { |
| 43 | timestamp: this.time, |
| 44 | }, |
| 45 | }; |
| 46 | |
| 47 | if (this.data !== null) { |
| 48 | description[this.name].data = this.data; |
| 49 | } |
| 50 | |
| 51 | return description; |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Get the thing associated with this event. |
no outgoing calls
no test coverage detected