workadventure/front/src/Api/Events/ui/MenuItemClickedEvent.ts

12 lines
339 B
TypeScript
Raw Normal View History

2021-06-21 18:22:31 +02:00
import * as tg from "generic-type-guard";
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>;