Skip to content

Commit

Permalink
fix: remove unsupported/unimplemented time unit type
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed May 14, 2024
1 parent ef87fee commit 58c4c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/template-string/date-functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { TemplateHelperFunction } from "./functions.js"
import { joi } from "../config/common.js"
import { format as formatFns, add } from "date-fns"

const validTimeUnits = ["years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds"] as const
const validTimeUnits = ["years", "months", "days", "hours", "minutes", "seconds", "milliseconds"] as const
type TimeUnit = typeof validTimeUnits[number]

export const dateHelperFunctionSpecs: TemplateHelperFunction[] = [
Expand Down

0 comments on commit 58c4c8b

Please sign in to comment.