mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 00:03:15 +00:00
9 lines
241 B
TypeScript
9 lines
241 B
TypeScript
import { ipcMain } from 'electron'
|
|
import type { StatsCollector } from '../stats/collector'
|
|
|
|
export function registerStatsHandlers(stats: StatsCollector): void {
|
|
ipcMain.handle('stats:summary', () => {
|
|
return stats.getSummary()
|
|
})
|
|
}
|