bigbuffet-rw/packages/pl-api/lib/entities/extended-description.ts
marcin mikołajczak 036fa32cd3 Add pl-api to workspace
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:43:23 +02:00

13 lines
378 B
TypeScript

import { z } from 'zod';
import { dateSchema } from './utils';
/** @see {@link https://docs.joinmastodon.org/entities/ExtendedDescription} */
const extendedDescriptionSchema = z.object({
updated_at: dateSchema,
content: z.string(),
});
type ExtendedDescription = z.infer<typeof extendedDescriptionSchema>;
export { extendedDescriptionSchema, type ExtendedDescription };