fullstack TSãªã¢ããªã±ã¼ã·ã§ã³ãå¢ãã¦ããæ¨ä»ãTSã§validatorãå®è£ ããéã«ä½ãæ¡ç¨ãããã¯ä¸å¤§ãããã¯ã§ããä»åã¯ããã®ä¸ã§ãæ°ãããªã©ã¤ãã©ãªã§ããBlitzãæ¡ç¨ãã¦ããZodã«ã¤ãã¦è¦ã¦ããã¾ãã Zodã¨ã¯ Zodã®ç¹å¾´ã¨ãã¦ãSchema firstãªvalidationã©ã¤ãã©ãªã§ããã¨ããã®ãããã¾ãã validateããschemaï¼åä¸ã®schemaããobject, arrayã¾ã§ï¼ãå®ç¾©ããããããã¼ã¹ã«parseããã¨ãããã®ã§ãã å ¬å¼ã«ããexampleãè¦ã¦ã¿ã¾ãããã import { z } from "zod"; // creating a schema for strings const mySchema = z.string(); mySchema.parse("tuna"); // => "tuna" mySchema.p
{{#tags}}- {{label}}
{{/tags}}