workadventure/front/src/Api/Events/InitEvent.ts
2021-07-02 17:36:43 +02:00

11 lines
329 B
TypeScript

import * as tg from "generic-type-guard";
export const isInitEvent =
new tg.IsInterface().withProperties({
variables: tg.isObject
}).get();
/**
* A message sent from the game just after an iFrame opens, to send all important data (like variables)
*/
export type InitEvent = tg.GuardedType<typeof isInitEvent>;