partey_workadventure/back/src/Model/Websocket/ItemEventMessage.ts

11 lines
354 B
TypeScript
Raw Normal View History

2020-07-27 22:36:07 +02:00
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>;