(fn: (host: DiscoveryHost) => T)
| 10 | } |
| 11 | |
| 12 | #withHost<T>(fn: (host: DiscoveryHost) => T): T { |
| 13 | const host = this.#host; |
| 14 | if (!host) { |
| 15 | throw new Error('Discovery host not available'); |
| 16 | } |
| 17 | return fn(host); |
| 18 | } |
| 19 | |
| 20 | getRecommendations( |
| 21 | context: Track[], |
no test coverage detected