2024-08-28 04:43:23 -07:00
|
|
|
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),
|
|
|
|
});
|
|
|
|
|
2024-08-29 13:48:58 -07:00
|
|
|
type BookmarkFolder = z.infer<typeof bookmarkFolderSchema>;
|
2024-08-28 04:43:23 -07:00
|
|
|
|
|
|
|
export { bookmarkFolderSchema, type BookmarkFolder };
|