diff --git a/packages/fuel-wallet/src/types.ts b/packages/fuel-wallet/src/types.ts index 5e26322f..b7bf115a 100644 --- a/packages/fuel-wallet/src/types.ts +++ b/packages/fuel-wallet/src/types.ts @@ -9,7 +9,7 @@ export enum MessageTypes { removeConnection = 'removeConnection', } -interface MessageSender { +export interface MessageSender { id?: string | undefined; origin?: string | undefined; tab?: { @@ -29,18 +29,18 @@ type BaseEvent = { readonly sender?: MessageSender; } & T; -type EventMessageEvents = Array<{ +export type EventMessageEvents = Array<{ event: string; params: Array; }>; -type UIEventMessage = BaseEvent<{ +export type UIEventMessage = BaseEvent<{ readonly type: MessageTypes.uiEvent; readonly ready: boolean; readonly session: string; }>; -type RequestMessage = BaseEvent<{ +export type RequestMessage = BaseEvent<{ readonly type: MessageTypes.request; readonly request: JSONRPCRequest; }>;