From be7ae740f6c11a3e7b381f9f9d19855948fa69ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Meier?= Date: Wed, 28 Feb 2024 23:30:48 +0100 Subject: [PATCH] Publish v0.3.0-alpha.6 - expose some internals in DateTimeRange and DateTime --- package.json | 2 +- src/time/DateTime.d.ts | 2 ++ src/time/DateTimeRange.d.ts | 9 ++++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d9bad5b..86a2a9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fire-lib-js", - "version": "0.3.0-alpha.5", + "version": "0.3.0-alpha.6", "author": "Sören Meier ", "type": "module", "scripts": { diff --git a/src/time/DateTime.d.ts b/src/time/DateTime.d.ts index a341586..196b193 100644 --- a/src/time/DateTime.d.ts +++ b/src/time/DateTime.d.ts @@ -1,4 +1,6 @@ export default class DateTime { + raw: Date; + /** * Tries to creates a new DateTime instance */ diff --git a/src/time/DateTimeRange.d.ts b/src/time/DateTimeRange.d.ts index 268272a..96e332f 100644 --- a/src/time/DateTimeRange.d.ts +++ b/src/time/DateTimeRange.d.ts @@ -1,13 +1,16 @@ import DateTime from './DateTime'; export default class DateTimeRange { + from: DateTime; + to: DateTime; + /** * Create a new DateTimeRange instance * @constructor - * @param {DateTime} start - The start date value - * @param {DateTime} end - The end date value + * @param {DateTime} from - The start date value + * @param {DateTime} to - The end date value */ - constructor(start: DateTime, end: DateTime); + constructor(from: DateTime, to: DateTime); /** * returns