feat(editor): Add examples for Luxon DateTime expression methods (#9361)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
Elias Meire
2024-05-16 14:53:22 +02:00
committed by GitHub
parent 211823650b
commit 40bce7f443
11 changed files with 1029 additions and 534 deletions

View File

@@ -217,7 +217,7 @@ function toDate(value: string): Date {
return date;
}
function toDateTime(value: string, extraArgs: [string]): DateTime {
export function toDateTime(value: string, extraArgs: [string] = ['']): DateTime {
try {
const [valueFormat] = extraArgs;