zod-aot 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -96,7 +96,6 @@ export const validateUser = compile(UserSchema);
|
|
|
96
96
|
// Same interface as Zod — works in both dev and production
|
|
97
97
|
const user = validateUser.parse(data); // throws on failure
|
|
98
98
|
const result = validateUser.safeParse(data); // { success, data/error }
|
|
99
|
-
const isUser = validateUser.is(data); // type guard (boolean)
|
|
100
99
|
```
|
|
101
100
|
|
|
102
101
|
### 3. Generate optimized code
|
|
@@ -295,7 +294,6 @@ The interface returned by `compile()`:
|
|
|
295
294
|
interface CompiledSchema<T> {
|
|
296
295
|
parse(input: unknown): T; // throws on failure
|
|
297
296
|
safeParse(input: unknown): SafeParseResult<T>; // { success, data/error }
|
|
298
|
-
is(input: unknown): input is T; // type guard (boolean)
|
|
299
297
|
schema: unknown; // reference to original Zod schema
|
|
300
298
|
}
|
|
301
299
|
```
|
|
@@ -401,4 +399,4 @@ pnpm lint && pnpm -r typecheck && pnpm test
|
|
|
401
399
|
|
|
402
400
|
## License
|
|
403
401
|
|
|
404
|
-
[MIT](LICENSE)
|
|
402
|
+
[MIT](LICENSE)
|