Add pl-api to workspace
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
13
packages/pl-api/lib/entities/extended-description.ts
Normal file
13
packages/pl-api/lib/entities/extended-description.ts
Normal file
@ -0,0 +1,13 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user