bigbuffet-rw/packages/pl-api/lib/entities/extended-description.ts

20 lines
456 B
TypeScript
Raw Normal View History

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