diff --git a/src/api/types.ts b/src/api/types.ts index f6b83fd75..31cfb5e5d 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -2044,7 +2044,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 22af6bb62..901559cab 100644 --- a/src/api/typesWithBodyKey.ts +++ b/src/api/typesWithBodyKey.ts @@ -2117,7 +2117,7 @@ export type DataStreamNames = DataStreamName | DataStreamName[] export type DateFormat = string -export type DateMath = string +export type DateMath = string | Date export type DateTime = string | EpochTime