bigbuffet-rw/app/soapbox/schemas/status.ts

10 lines
267 B
TypeScript
Raw Normal View History

2023-04-10 13:22:08 -07:00
import { z } from 'zod';
import { normalizeStatus } from 'soapbox/normalizers';
import { toSchema } from 'soapbox/utils/normalizers';
const statusSchema = toSchema(normalizeStatus);
type Status = z.infer<typeof statusSchema>;
export { statusSchema, type Status };