bigbuffet-rw/packages/pl-api/lib/entities/bookmark-folder.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

14 lines
390 B
TypeScript

import { z } from 'zod';
import type { Resolve } from '../utils/types';
const bookmarkFolderSchema = z.object({
id: z.coerce.string(),
name: z.string().catch(''),
emoji: z.string().nullable().catch(null),
emoji_url: z.string().nullable().catch(null),
});
type BookmarkFolder = Resolve<z.infer<typeof bookmarkFolderSchema>>;
export { bookmarkFolderSchema, type BookmarkFolder };