Skip to content

Commit

Permalink
fix: typing 2
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jun 16, 2024
1 parent 36c97c5 commit a9eef8b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/validators/src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,15 @@ const SharedDuration = z
message:
issue.code === "invalid_type"
? startTimeError
: issue.code === "required_error"
? startTimeError
: defaultError,
: defaultError,
}),
}),
endTime: z.date({
errorMap: (issue, { defaultError }) => ({
message:
issue.code === "invalid_type"
? endTimeError
: issue.code === "required_error"
? endTimeError
: defaultError,
: defaultError,
}),
}),
})
Expand Down

0 comments on commit a9eef8b

Please sign in to comment.