From 71b3c4872af01a5a8832ae2cc026ee7491fdff38 Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Thu, 1 Aug 2024 16:10:12 +0800 Subject: [PATCH] fix event signatures --- src/core/PopupHandler.ts | 2 +- src/jrpc/jrpcEngine.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/PopupHandler.ts b/src/core/PopupHandler.ts index f8a46adb..4be8237a 100644 --- a/src/core/PopupHandler.ts +++ b/src/core/PopupHandler.ts @@ -12,7 +12,7 @@ export interface PopupResponse { } export interface PopupHandlerEvents { - close: void; + close: []; } class PopupHandler extends EventEmitter { diff --git a/src/jrpc/jrpcEngine.ts b/src/jrpc/jrpcEngine.ts index 21e1b730..b1d44bc8 100644 --- a/src/jrpc/jrpcEngine.ts +++ b/src/jrpc/jrpcEngine.ts @@ -15,15 +15,15 @@ import { import { SafeEventEmitter } from "./safeEventEmitter"; import { SerializableError } from "./serializableError"; -export interface JrpcEnginEvents { - notification: (arg1: string) => boolean; +export interface JrpcEngineEvents { + notification: (arg1: string) => void; } /** * A JSON-RPC request and response processor. * Give it a stack of middleware, pass it requests, and get back responses. */ -export class JRPCEngine extends SafeEventEmitter { +export class JRPCEngine extends SafeEventEmitter { private _middleware: JRPCMiddleware[]; constructor() {