From e9a8c6d3989c38192215bc0229e72b442d0b4f82 Mon Sep 17 00:00:00 2001 From: krupp Date: Thu, 18 Jul 2024 15:02:52 +0200 Subject: [PATCH] feat PA-4613: type definition for new register new iframeListner function --- src/ps-web-apis.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ps-web-apis.ts b/src/ps-web-apis.ts index 621b333..0fa19c1 100644 --- a/src/ps-web-apis.ts +++ b/src/ps-web-apis.ts @@ -60,6 +60,7 @@ export type Fetch = ( ) => Promise; export type GetRosettaEnvByKey = (key: string) => string | undefined; export type WaitForCapacity = (queue: WaitingRoomQueue) => Promise; +export type RegisterIframeMessageListener = (eventtype: string, listener: (event: any, iframe: HTMLIFrameElement) => void) => void; export interface WhoamiV1 { /** @@ -140,8 +141,8 @@ export interface WhoamiV1 { export interface UtilsV1 { fetchWithTimeout: Fetch; getRosettaEnvByKey: GetRosettaEnvByKey; + registerIframeMessageListener: RegisterIframeMessageListener; } - export interface WaitingRoomV1 { waitForCapacity: WaitForCapacity; }