Skip to content

Commit

Permalink
use number for integer
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Jan 30, 2025
1 parent dfa631a commit cdb6326
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions templates/typescript-zod.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
{{ type }}Schema
{%- elif type == "float" -%}
z.number()
{%- elif type == "integer" -%}
z.number()
{%- else -%}
z.{{ type | lower }}()
{%- endif -%}
Expand All @@ -70,6 +72,8 @@
{{ dtype }}Schema
{%- elif dtype == "float" -%}
z.number()
{%- elif dtype == "integer" -%}
z.number()
{%- else -%}
z.{{ dtype | lower }}()
{%- endif -%}
Expand Down

0 comments on commit cdb6326

Please sign in to comment.