Skip to content

Commit

Permalink
feat PA-4613: type definition for new register new iframeListner func…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
K-a-t-i committed Jul 18, 2024
1 parent 5436396 commit e9a8c6d
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 e9a8c6d

Please sign in to comment.