fixed config tests
This commit is contained in:
parent
6fb16b9e26
commit
1395e448b7
1 changed files with 2 additions and 2 deletions
|
|
@ -56,9 +56,9 @@ export const envValidators = { // String with default
|
|||
.pipe(z.number().int().min(1).max(65535))
|
||||
.default(defaultValue?.toString() || '3000')
|
||||
.describe(description || ''),
|
||||
// Number with default
|
||||
// Number with default
|
||||
num: (defaultValue?: number, description?: string) =>
|
||||
z.string().transform((val: string) => parseInt(val, 10))
|
||||
z.string().transform((val: string) => parseFloat(val))
|
||||
.pipe(z.number())
|
||||
.default(defaultValue?.toString() || '0')
|
||||
.describe(description || ''),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue