mirror of
https://github.com/linkwarden/browser-extension.git
synced 2026-06-23 04:10:26 +00:00
10 lines
358 B
TypeScript
10 lines
358 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const optionsFormSchema = z.object({
|
|
baseUrl: z.string().url('This has to be a URL'),
|
|
username: z.string().min(1, 'This cannot be empty'),
|
|
password: z.string().min(1, 'This cannot be empty'),
|
|
syncBookmarks: z.boolean().default(false).optional(),
|
|
});
|
|
|
|
export type optionsFormValues = z.infer<typeof optionsFormSchema>; |