workadventure/front/src/Api/Events/MenuItemRegisterEvent.ts
David Négrier 9b68faac0e
Fixing JSDoc
2021-05-18 09:53:54 +02:00

11 lines
331 B
TypeScript

import * as tg from "generic-type-guard";
export const isMenuItemRegisterEvent =
new tg.IsInterface().withProperties({
menutItem: tg.isString
}).get();
/**
* A message sent from the iFrame to the game to add a new menu item.
*/
export type MenuItemRegisterEvent = tg.GuardedType<typeof isMenuItemRegisterEvent>;