partey_workadventure/back/src/Model/Websocket/ItemEventMessage.ts
2020-07-27 22:36:58 +02:00

11 lines
354 B
TypeScript

import * as tg from "generic-type-guard";
export const isItemEventMessageInterface =
new tg.IsInterface().withProperties({
itemId: tg.isNumber,
event: tg.isString,
state: tg.isUnknown,
parameters: tg.isUnknown,
}).get();
export type ItemEventMessageInterface = tg.GuardedType<typeof isItemEventMessageInterface>;