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;