Skip to content

Commit

Permalink
feat: export message types (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
helciofranco authored Mar 18, 2024
1 parent 05d4432 commit a137b46
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/fuel-wallet/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export enum MessageTypes {
removeConnection = 'removeConnection',
}

interface MessageSender {
export interface MessageSender {
id?: string | undefined;
origin?: string | undefined;
tab?: {
Expand All @@ -29,18 +29,18 @@ type BaseEvent<T> = {
readonly sender?: MessageSender;
} & T;

type EventMessageEvents = Array<{
export type EventMessageEvents = Array<{
event: string;
params: Array<unknown>;
}>;

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;
}>;
Expand Down

0 comments on commit a137b46

Please sign in to comment.