* Zod WIP * Zod form validation * DynamicForm testing * Fix linting * Delete rasterSource.ts --------- Co-authored-by: philon- <philon-@users.noreply.github.com>
14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import { z } from "zod/v4";
|
|
|
|
export const AmbientLightingValidationSchema = z.object({
|
|
ledState: z.boolean(),
|
|
current: z.coerce.number().int().min(0),
|
|
red: z.coerce.number().int().min(0).max(255),
|
|
green: z.coerce.number().int().min(0).max(255),
|
|
blue: z.coerce.number().int().min(0).max(255),
|
|
});
|
|
|
|
export type AmbientLightingValidation = z.infer<
|
|
typeof AmbientLightingValidationSchema
|
|
>;
|