10 lines
345 B
Plaintext
10 lines
345 B
Plaintext
---
|
|
description: Best practices for schema validation with Zod
|
|
globs: **/*.{ts,tsx}
|
|
---
|
|
|
|
- Define clear and reusable schemas for data validation
|
|
- Use Zod's type inference for TypeScript integration and type safety
|
|
- Implement custom validation rules using Zod's `refine` method
|
|
- Utilize Zod with `react-hook-form` for seamless form validation
|