workadventure/front/src/Api/Events/ButtonClickedEvent.ts

13 lines
403 B
TypeScript
Raw Normal View History

2021-03-09 18:05:07 +01:00
import * as tg from "generic-type-guard";
2021-09-06 14:27:54 +02:00
export const isButtonClickedEvent = new tg.IsInterface()
.withProperties({
2021-03-09 18:05:07 +01:00
popupId: tg.isNumber,
buttonId: tg.isNumber,
2021-09-06 14:27:54 +02:00
})
.get();
2021-03-09 18:05:07 +01:00
/**
* A message sent from the game to the iFrame when a user enters or leaves a zone marked with the "zone" property.
*/
export type ButtonClickedEvent = tg.GuardedType<typeof isButtonClickedEvent>;