Skip to content

Commit e9a8c6d

Browse files
committed
feat PA-4613: type definition for new register new iframeListner function
1 parent 5436396 commit e9a8c6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ps-web-apis.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export type Fetch = (
6060
) => Promise<Response>;
6161
export type GetRosettaEnvByKey = (key: string) => string | undefined;
6262
export type WaitForCapacity = (queue: WaitingRoomQueue) => Promise<void>;
63+
export type RegisterIframeMessageListener = (eventtype: string, listener: (event: any, iframe: HTMLIFrameElement) => void) => void;
6364

6465
export interface WhoamiV1 {
6566
/**
@@ -140,8 +141,8 @@ export interface WhoamiV1 {
140141
export interface UtilsV1 {
141142
fetchWithTimeout: Fetch;
142143
getRosettaEnvByKey: GetRosettaEnvByKey;
144+
registerIframeMessageListener: RegisterIframeMessageListener;
143145
}
144-
145146
export interface WaitingRoomV1 {
146147
waitForCapacity: WaitForCapacity;
147148
}

0 commit comments

Comments
 (0)