Problem with IpcService interface

When importing the package in index.ts, I came across this error when passing IpcMain from electron to the NewServiceBridge function:

Argument of type 'IpcMain' is not assignable to parameter of type 'IpcService'.
  Types of property 'handle' are incompatible.
    Type '(channel: string, listener: (event: IpcMainInvokeEvent, ...args: any[]) => any) => void' is not assignable
to type '{ (channel: "rsipc-request", listener: (event: IpcEvent, name: string, data: string) => Promise<string>): void;
(channel: "rsipc-emit", listener: (event: IpcEvent, name: string, data: string) => unknown): void; }'.
      Types of parameters 'listener' and 'listener' are incompatible.
        Types of parameters 'event' and 'event' are incompatible.
          Type 'IpcMainInvokeEvent' is not assignable to type 'IpcEvent'.
            The types returned by 'sender.send(...)' are incompatible between these types.
              Type 'void' is not assignable to type 'string'.ts(2345)