2021-06-21 18:22:31 +02:00
|
|
|
import * as tg from "generic-type-guard";
|
|
|
|
|
2021-06-25 18:14:40 +02:00
|
|
|
export const isMenuItemClickedEvent = new tg.IsInterface()
|
|
|
|
.withProperties({
|
|
|
|
menuItem: tg.isString,
|
|
|
|
})
|
|
|
|
.get();
|
2021-06-21 18:22:31 +02:00
|
|
|
/**
|
|
|
|
* A message sent from the game to the iFrame when a menu item is clicked.
|
|
|
|
*/
|
|
|
|
export type MenuItemClickedEvent = tg.GuardedType<typeof isMenuItemClickedEvent>;
|