From 802ed1fb23ca8cb2805d92c299197f830367217d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:32:27 -0500 Subject: [PATCH] [Backport 8.13] Add `Date` to `DateMath` type (#2231) Co-authored-by: Josh Mock (cherry picked from commit 768ba3d8aedd2264aed0b5ba1afa63f37bf9ad17) Co-authored-by: Rami <72725910+ramikg@users.noreply.github.com> --- src/api/types.ts | 2 +- src/api/typesWithBodyKey.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index 9be5891fb..9c3673133 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -2047,7 +2047,7 @@ export type DataStreamNames = DataStreamName | DataStreamName[] export type DateFormat = string -export type DateMath = string +export type DateMath = string | Date export type DateTime = string | EpochTime diff --git a/src/api/typesWithBodyKey.ts b/src/api/typesWithBodyKey.ts index 70c00df04..92a712192 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -2120,7 +2120,7 @@ export type DataStreamNames = DataStreamName | DataStreamName[] export type DateFormat = string -export type DateMath = string +export type DateMath = string | Date export type DateTime = string | EpochTime