기존 4-line narrowing 체인 (e.kind !== 'empty_trash' && ... && ...) 이 union 확장 시 길어짐 → hasNoteId(ev) type predicate 로 통합. - telemetryEvents.ts: NO_NOTE_ID_KINDS Set + hasNoteId(ev): ev is ... export - TelemetryService.test.ts: 2 narrowing callsite 단축 - 단위 +2 cases (noteId-bearing / noteId-less) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 KiB
10 KiB