bigbuffet-rw/packages/pl-api/lib/entities/bookmark-folder.ts
marcin mikołajczak d91b55d9b1 cleanup
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-29 22:48:58 +02:00

12 lines
333 B
TypeScript

import { z } from 'zod';
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 = z.infer<typeof bookmarkFolderSchema>;
export { bookmarkFolderSchema, type BookmarkFolder };