bigbuffet-rw/packages/pl-api/lib/entities/context.ts
marcin mikołajczak d91b55d9b1 cleanup
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-29 22:48:58 +02:00

13 lines
335 B
TypeScript

import { z } from 'zod';
import { statusSchema } from './status';
/** @see {@link https://docs.joinmastodon.org/entities/Context/} */
const contextSchema = z.object({
ancestors: z.array(statusSchema),
descendants: z.array(statusSchema),
});
type Context = z.infer<typeof contextSchema>;
export { contextSchema, type Context };