13 lines
382 B
TypeScript
13 lines
382 B
TypeScript
import { z } from "zod";
|
|
|
|
export const userSettings = z.object({
|
|
placeQuestionMark: z.boolean().default(false),
|
|
longPressOnDesktop: z.boolean().default(false),
|
|
showRevealAnimation: z
|
|
.boolean()
|
|
.transform((v) => typeof v === "undefined" || v),
|
|
});
|
|
|
|
export type UserSettings = z.infer<typeof userSettings>;
|
|
export type UserSettingsInput = z.input<typeof userSettings>;
|