jcal-zmanim 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -61,7 +61,7 @@ declare class Sedra {
61
61
  static getDayOnOrBefore(day_of_week: number, date: number): number;
62
62
  static getSedraOrder(year: number, israel: boolean): {
63
63
  firstSatInYear: number;
64
- sedraArray?: number[] | undefined;
64
+ sedraArray?: number[];
65
65
  year: number;
66
66
  israel: boolean;
67
67
  };
@@ -569,9 +569,9 @@ declare class Utils {
569
569
  jdate: jDate;
570
570
  };
571
571
  /** Returns true if "thing" is either a string primitive or String object.*/
572
- static isString(thing: unknown): boolean;
572
+ static isString(thing: unknown): thing is string | String;
573
573
  /** Returns true if "thing" is either a number primitive or a Number object.*/
574
- static isNumber(thing: unknown): boolean;
574
+ static isNumber(thing: unknown): thing is number | Number;
575
575
  /** Returns true if "thing" is a Date object containing a valid date.*/
576
576
  static isValidDate(thing: unknown): boolean;
577
577
  /** Returns whether or not the given, array, string, or argument list contains the given item or substring.
@@ -766,6 +766,39 @@ declare const ZmanTypeIds: Readonly<{
766
766
  }>;
767
767
  /**
768
768
  * List of Zman Types. Used to acquire the Zmanim for a particular day.
769
+ *
770
+ * An array of objects representing different Zmanim (Jewish halachic times).
771
+ * Each object contains the following properties:
772
+ * - `id`: A unique identifier for the Zman.
773
+ * - `desc`: A description of the Zman in Hebrew.
774
+ * - `eng`: The English translation of the Zman.
775
+ * - `heb`: The Hebrew name of the Zman.
776
+ *
777
+ * The Zmanim included are:
778
+ * - Chatzos Layla (Midnight)
779
+ * - Alos Hashachar (Dawn) - 90 minutes
780
+ * - Alos Hashachar (Dawn) - 72 minutes
781
+ * - Taliss and Tefillin (36 minutes)
782
+ * - Sunrise at current elevation
783
+ * - Sunrise at sea level
784
+ * - Zman Krias Shma according to MG"A
785
+ * - Zman Krias Shma according to GR"A
786
+ * - Zman Tefilla according to MG"A
787
+ * - Zman Tefilla according to GR"A
788
+ * - Chatzos (Midday)
789
+ * - Mincha Gedola
790
+ * - Mincha Ketana
791
+ * - Plag HaMincha
792
+ * - Sunset at sea level
793
+ * - Sunset at current elevation
794
+ * - Nightfall (45 minutes after sunset)
795
+ * - Nightfall (50 minutes after sunset)
796
+ * - Rabbeinu Tam (72 minutes after sunset)
797
+ * - Rabbeinu Tam - Zmanios
798
+ * - Rabbeinu Tam - Zmanios MG"A
799
+ * - Candle lighting time
800
+ * - Stop eating Chometz
801
+ * - Destroy Chometz
769
802
  */
770
803
  declare const ZmanTypes: ZmanToShow[];
771
804
  /**
@@ -884,7 +917,7 @@ declare class ZmanimUtils {
884
917
  * @param {jDate} jdate
885
918
  * @param {Location} location
886
919
  */
887
- static getWhichDays(date: Date, jdate: jDate, location: Location): 0 | 1 | 2 | 4 | 8 | 32 | 16 | 64 | 128;
920
+ static getWhichDays(date: Date, jdate: jDate, location: Location): 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
888
921
  /**
889
922
  * Returns the zmanim necessary for showing basic shul notifications: chatzosHayom, chatzosHalayla, alos
890
923
  * @param {jDate|Date} date
@@ -905,7 +938,7 @@ declare class ZmanimUtils {
905
938
  */
906
939
  static getAllZmanim(date: jDate | Date, location: Location): {
907
940
  zmanType: ZmanToShow;
908
- time?: Time | undefined;
941
+ time?: Time;
909
942
  }[];
910
943
  }
911
944
 
package/dist/index.d.ts CHANGED
@@ -61,7 +61,7 @@ declare class Sedra {
61
61
  static getDayOnOrBefore(day_of_week: number, date: number): number;
62
62
  static getSedraOrder(year: number, israel: boolean): {
63
63
  firstSatInYear: number;
64
- sedraArray?: number[] | undefined;
64
+ sedraArray?: number[];
65
65
  year: number;
66
66
  israel: boolean;
67
67
  };
@@ -569,9 +569,9 @@ declare class Utils {
569
569
  jdate: jDate;
570
570
  };
571
571
  /** Returns true if "thing" is either a string primitive or String object.*/
572
- static isString(thing: unknown): boolean;
572
+ static isString(thing: unknown): thing is string | String;
573
573
  /** Returns true if "thing" is either a number primitive or a Number object.*/
574
- static isNumber(thing: unknown): boolean;
574
+ static isNumber(thing: unknown): thing is number | Number;
575
575
  /** Returns true if "thing" is a Date object containing a valid date.*/
576
576
  static isValidDate(thing: unknown): boolean;
577
577
  /** Returns whether or not the given, array, string, or argument list contains the given item or substring.
@@ -766,6 +766,39 @@ declare const ZmanTypeIds: Readonly<{
766
766
  }>;
767
767
  /**
768
768
  * List of Zman Types. Used to acquire the Zmanim for a particular day.
769
+ *
770
+ * An array of objects representing different Zmanim (Jewish halachic times).
771
+ * Each object contains the following properties:
772
+ * - `id`: A unique identifier for the Zman.
773
+ * - `desc`: A description of the Zman in Hebrew.
774
+ * - `eng`: The English translation of the Zman.
775
+ * - `heb`: The Hebrew name of the Zman.
776
+ *
777
+ * The Zmanim included are:
778
+ * - Chatzos Layla (Midnight)
779
+ * - Alos Hashachar (Dawn) - 90 minutes
780
+ * - Alos Hashachar (Dawn) - 72 minutes
781
+ * - Taliss and Tefillin (36 minutes)
782
+ * - Sunrise at current elevation
783
+ * - Sunrise at sea level
784
+ * - Zman Krias Shma according to MG"A
785
+ * - Zman Krias Shma according to GR"A
786
+ * - Zman Tefilla according to MG"A
787
+ * - Zman Tefilla according to GR"A
788
+ * - Chatzos (Midday)
789
+ * - Mincha Gedola
790
+ * - Mincha Ketana
791
+ * - Plag HaMincha
792
+ * - Sunset at sea level
793
+ * - Sunset at current elevation
794
+ * - Nightfall (45 minutes after sunset)
795
+ * - Nightfall (50 minutes after sunset)
796
+ * - Rabbeinu Tam (72 minutes after sunset)
797
+ * - Rabbeinu Tam - Zmanios
798
+ * - Rabbeinu Tam - Zmanios MG"A
799
+ * - Candle lighting time
800
+ * - Stop eating Chometz
801
+ * - Destroy Chometz
769
802
  */
770
803
  declare const ZmanTypes: ZmanToShow[];
771
804
  /**
@@ -884,7 +917,7 @@ declare class ZmanimUtils {
884
917
  * @param {jDate} jdate
885
918
  * @param {Location} location
886
919
  */
887
- static getWhichDays(date: Date, jdate: jDate, location: Location): 0 | 1 | 2 | 4 | 8 | 32 | 16 | 64 | 128;
920
+ static getWhichDays(date: Date, jdate: jDate, location: Location): 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128;
888
921
  /**
889
922
  * Returns the zmanim necessary for showing basic shul notifications: chatzosHayom, chatzosHalayla, alos
890
923
  * @param {jDate|Date} date
@@ -905,7 +938,7 @@ declare class ZmanimUtils {
905
938
  */
906
939
  static getAllZmanim(date: jDate | Date, location: Location): {
907
940
  zmanType: ZmanToShow;
908
- time?: Time | undefined;
941
+ time?: Time;
909
942
  }[];
910
943
  }
911
944