bigbuffet-rw/app/soapbox/schemas/chat-message.ts
2023-05-04 10:24:34 -05:00

10 lines
No EOL
302 B
TypeScript

import { z } from 'zod';
import { normalizeChatMessage } from 'soapbox/normalizers';
import { toSchema } from 'soapbox/utils/normalizers';
const chatMessageSchema = toSchema(normalizeChatMessage);
type ChatMessage = z.infer<typeof chatMessageSchema>;
export { chatMessageSchema, type ChatMessage };