bigbuffet-rw/packages/pl-api/lib/entities/extended-description.ts
marcin mikołajczak a521c9044d make pl-api compile
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-10-16 17:03:27 +02:00

13 lines
397 B
TypeScript

import * as v from 'valibot';
import { datetimeSchema } from './utils';
/** @see {@link https://docs.joinmastodon.org/entities/ExtendedDescription} */
const extendedDescriptionSchema = v.object({
updated_at: datetimeSchema,
content: v.string(),
});
type ExtendedDescription = v.InferOutput<typeof extendedDescriptionSchema>;
export { extendedDescriptionSchema, type ExtendedDescription };