Skip to content

Commit

Permalink
Merge pull request #266 from yotamishak/master
Browse files Browse the repository at this point in the history
Add isDate to string transformer + Zod 3.23.8 upgrade
  • Loading branch information
AGalabov authored Dec 6, 2024
2 parents 10ddc0b + 7e16e81 commit f7b70c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/transformers/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class StringTransformer {
if (zodString.isULID) return 'ulid';
if (zodString.isIP) return 'ip';
if (zodString.isEmoji) return 'emoji';
if (zodString.isDate) return 'date';

return undefined;
}
Expand Down

0 comments on commit f7b70c3

Please sign in to comment.