79262064

Date: 2024-12-08 08:18:03
Score: 1.5
Natty:
Report link

Instead of exporting the schema, you can export a function that creates the schema to retain those information:

export const createSignInSchema = () => z.object({
   email: z.string().email(),
   password: z.string().min(6)
})

// usage
const signInSchema = createSignInSchema()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Theo