Skip to content

Commit

Permalink
Merge pull request #67 from spring-media/PA-4613
Browse files Browse the repository at this point in the history
feat PA-4613: type definition for new register new iframeListner func…
  • Loading branch information
K-a-t-i committed Jul 24, 2024
2 parents 5436396 + e9a8c6d commit b70849d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ps-web-apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export type Fetch = (
) => Promise<Response>;
export type GetRosettaEnvByKey = (key: string) => string | undefined;
export type WaitForCapacity = (queue: WaitingRoomQueue) => Promise<void>;
export type RegisterIframeMessageListener = (eventtype: string, listener: (event: any, iframe: HTMLIFrameElement) => void) => void;

export interface WhoamiV1 {
/**
Expand Down Expand Up @@ -140,8 +141,8 @@ export interface WhoamiV1 {
export interface UtilsV1 {
fetchWithTimeout: Fetch;
getRosettaEnvByKey: GetRosettaEnvByKey;
registerIframeMessageListener: RegisterIframeMessageListener;
}

export interface WaitingRoomV1 {
waitForCapacity: WaitForCapacity;
}
Expand Down

0 comments on commit b70849d

Please sign in to comment.