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