--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: issue-1932.ts --- # Input ```ts export interface EventMap { 'article-viewed': { id: string }; 'chat-started': { name: string; email: string; subject: string }; } export interface SomeFunc { (cmd: 'on', event: K, cb: (data: EventMap[K]) => void): void; (cmd: 'once', event: K, cb: (data: EventMap[K]) => void): void; } ```