bigbuffet-rw/packages/pl-api/lib/entities/extended-description.ts
marcin mikołajczak bc65755862 pl-api: Update docs
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-11-29 16:01:54 +01:00

19 lines
456 B
TypeScript

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