Files
partey_workadventure/front/src/Api/Events/UserInputChatEvent.ts
T
Alexis Faizeau d1e8243c47 Zod EVERYWHERE (#2027)
* Zod EVERYWHERE

* Add no-unused-vars rule to eslint in front

* Add no-unused-vars rule to eslint in pusher

* Add no-unused-vars rule to eslint in back

* Remove unused PlayerTexture guards

* Fix data providing on room connection

Co-authored-by: Alexis Faizeau <a.faizeau@workadventu.re>
2022-04-12 14:21:19 +02:00

11 lines
269 B
TypeScript

import { z } from "zod";
export const isUserInputChatEvent = z.object({
message: z.string(),
});
/**
* A message sent from the game to the iFrame when a user types a message in the chat.
*/
export type UserInputChatEvent = z.infer<typeof isUserInputChatEvent>;