Skip to content

Commit 415dfab

Browse files
authored
fix: correct return type of getEvents() (#281)
1 parent 4935e62 commit 415dfab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { app, session } from 'electron';
22
import path from 'node:path';
33
import { createRequire } from 'node:module';
4-
import type { Direction, IpcEventData, ServiceWorkerDetails } from './types/shared';
4+
import type { Direction, IpcEventData, IpcEventDataIndexed, ServiceWorkerDetails } from './types/shared';
55
import { excludedIpcChannels } from './common/constants';
66

77
let isInstalled = false;
@@ -235,7 +235,7 @@ async function install() {
235235
* - If called before installation or before the Devtron service worker is ready,
236236
* an empty array will be returned.
237237
*/
238-
async function getEvents(): Promise<IpcEventData[]> {
238+
async function getEvents(): Promise<IpcEventDataIndexed[]> {
239239
if (!isInstalled) {
240240
console.warn('You are trying to get IPC events before Devtron is installed.');
241241
return [];

0 commit comments

Comments
 (0)