From 0e7ff86862e6accf20ab2faa3e9699ed2923b596 Mon Sep 17 00:00:00 2001 From: Milos Dzepina Date: Fri, 17 May 2024 13:40:33 +0200 Subject: [PATCH] fix: update event callback argument type Signed-off-by: Milos Dzepina --- src/edge-agent/types/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/edge-agent/types/index.ts b/src/edge-agent/types/index.ts index 7c4293f94..41579b6f3 100644 --- a/src/edge-agent/types/index.ts +++ b/src/edge-agent/types/index.ts @@ -105,7 +105,10 @@ export interface AgentInvitations { parseOOBInvitation(str: URL): Promise; } -export type EventCallback = (messages: Message[]) => void; +type MessageEventArg = Message[]; +type ConnectionEventArg = DIDPair; +type RevokeEventArg = Credential; +export type EventCallback = (arg: MessageEventArg | ConnectionEventArg | RevokeEventArg) => void; export type EventPickupCallback = (messages: { attachmentId: string; message: Message;