Adding a Popup object with a close() method on it.

This commit is contained in:
David Négrier 2021-03-09 18:51:30 +01:00
parent 18464e4942
commit bb8b222c22
5 changed files with 84 additions and 37 deletions

View file

@ -0,0 +1,11 @@
import * as tg from "generic-type-guard";
export const isClosePopupEvent =
new tg.IsInterface().withProperties({
popupId: tg.isNumber,
}).get();
/**
* A message sent from the iFrame to the game to add a message in the chat.
*/
export type ClosePopupEvent = tg.GuardedType<typeof isClosePopupEvent>;