Skip to content

Commit

Permalink
fix event signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Aug 1, 2024
1 parent 18935c4 commit 71b3c48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/PopupHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface PopupResponse {
}

export interface PopupHandlerEvents {
close: void;
close: [];
}

class PopupHandler extends EventEmitter<PopupHandlerEvents> {
Expand Down
6 changes: 3 additions & 3 deletions src/jrpc/jrpcEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<JrpcEnginEvents> {
export class JRPCEngine extends SafeEventEmitter<JrpcEngineEvents> {
private _middleware: JRPCMiddleware<unknown, unknown>[];

constructor() {
Expand Down

0 comments on commit 71b3c48

Please sign in to comment.