We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb69cdc commit 419cc7dCopy full SHA for 419cc7d
2 files changed
eslint.config.mjs
@@ -261,7 +261,6 @@ export default defineConfig([
261
"prefer-numeric-literals": "error",
262
"prefer-rest-params": "error",
263
"prefer-spread": "error",
264
- "prefer-template": "error",
265
"require-yield": "error",
266
"rest-spread-spacing": [
267
"error",
src/Event.ts
@@ -4,7 +4,9 @@ import type { IEvent } from './interfaces/IEvent.ts';
4
* Get text description of an event for logging purposes
5
*/
6
export function describe(event: IEvent): string {
7
- return `'${event.type}' of ${event.aggregateId} (v${event.aggregateVersion})`;
+ return `'${event.type}'`
8
+ + (event.id ? ` (id: ${event.id})` : '')
9
+ + (event.aggregateId ? ` of ${event.aggregateId} (v${event.aggregateVersion})` : '');
10
}
11
12
/**
0 commit comments