This commit is contained in:
kakkokari-gtyih 2024-06-02 20:18:36 +09:00
parent 164998823f
commit 7a1e28d674
1 changed files with 2 additions and 2 deletions

View File

@ -17,13 +17,13 @@ export interface PostMessageEventPayload extends Record<PostMessageEventType, an
'misskey:embed:changeHeight': { 'misskey:embed:changeHeight': {
height: number; height: number;
}; };
}; }
export type MiPostMessageEvent<T extends PostMessageEventType = PostMessageEventType> = { export type MiPostMessageEvent<T extends PostMessageEventType = PostMessageEventType> = {
type: T; type: T;
iframeId?: string; iframeId?: string;
payload?: PostMessageEventPayload[T]; payload?: PostMessageEventPayload[T];
}; }
let defaultIframeId: string | null = null; let defaultIframeId: string | null = null;