diff --git a/index.js b/index.js index 4394049..6c1be53 100644 --- a/index.js +++ b/index.js @@ -338,6 +338,9 @@ class DateObject { return result.replace(/[0-9]/g, (w) => digits[w]); } + /** + * @deprecated + */ getProperty(key) { return this.getValue(key); } @@ -757,6 +760,9 @@ class DateObject { return this.#calendar.getAllDays(this); } + /** + * @deprecated + */ get dayOfBeginning() { return this.toDays(); }