Skip to content

Commit

Permalink
Remove coercion for string parameters
Browse files Browse the repository at this point in the history
If the parameters are not supplied, the coercion will actually return
them as 'undefined' string which is not the expected behavior.
  • Loading branch information
0237h committed May 30, 2024
1 parent 2a26704 commit 8a51c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function AntelopeTokenAPI() {
p[key] = z.coerce.date();
// Any other type will be coerced as string value directly
} else {
p[key] = z.coerce.string();
p[key] = z.string();
}

if (isOptional)
Expand Down

0 comments on commit 8a51c82

Please sign in to comment.