Adding a Popup object with a close() method on it.
This commit is contained in:
parent
18464e4942
commit
bb8b222c22
5 changed files with 84 additions and 37 deletions
11
front/src/Api/Events/ClosePopupEvent.ts
Normal file
11
front/src/Api/Events/ClosePopupEvent.ts
Normal 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>;
|
Loading…
Add table
Add a link
Reference in a new issue