bigbuffet-rw/app/soapbox/schemas/status.ts
2023-04-10 15:22:08 -05:00

10 lines
No EOL
267 B
TypeScript

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 };