workadventure/back/src/Model/Websocket/SetPlayerDetailsMessage.ts
2020-07-28 17:45:55 +02:00

9 lines
304 B
TypeScript

import * as tg from "generic-type-guard";
export const isSetPlayerDetailsMessage =
new tg.IsInterface().withProperties({
name: tg.isString,
characterLayers: tg.isArray(tg.isString)
}).get();
export type SetPlayerDetailsMessage = tg.GuardedType<typeof isSetPlayerDetailsMessage>;