@hebcal/core 5.3.12 → 5.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.
@@ -0,0 +1,451 @@
1
+ /**
2
+ * Parse options object to determine start & end days
3
+ * @private
4
+ * @param {CalOptions} options
5
+ * @return {number[]}
6
+ */
7
+ export function getStartAndEnd(options: CalOptions): number[];
8
+ /**
9
+ * HebrewCalendar is the main interface to the `@hebcal/core` library.
10
+ * This namespace is used to calculate holidays, rosh chodesh, candle lighting & havdalah times,
11
+ * Parashat HaShavua, Daf Yomi, days of the omer, and the molad.
12
+ * Event names can be rendered in several languges using the `locale` option.
13
+ */
14
+ export class HebrewCalendar {
15
+ /**
16
+ * Calculates holidays and other Hebrew calendar events based on {@link CalOptions}.
17
+ *
18
+ * Each holiday is represented by an {@link Event} object which includes a date,
19
+ * a description, flags and optional attributes.
20
+ * If given no options, returns holidays for the Diaspora for the current Gregorian year.
21
+ *
22
+ * The date range returned by this function can be controlled by:
23
+ * * `options.year` - Gregorian (e.g. 1993) or Hebrew year (e.g. 5749)
24
+ * * `options.isHebrewYear` - to interpret `year` as Hebrew year
25
+ * * `options.numYears` - generate calendar for multiple years (default 1)
26
+ * * `options.month` - Gregorian or Hebrew month (to filter results to a single month)
27
+ *
28
+ * Alternatively, specify start and end days with `Date` or {@link HDate} instances:
29
+ * * `options.start` - use specific start date (requires `end` date)
30
+ * * `options.end` - use specific end date (requires `start` date)
31
+ *
32
+ * Unless `options.noHolidays == true`, default holidays include:
33
+ * * Major holidays - Rosh Hashana, Yom Kippur, Pesach, Sukkot, etc.
34
+ * * Minor holidays - Purim, Chanukah, Tu BiShvat, Lag BaOmer, etc.
35
+ * * Minor fasts - Ta'anit Esther, Tzom Gedaliah, etc. (unless `options.noMinorFast`)
36
+ * * Special Shabbatot - Shabbat Shekalim, Zachor, etc. (unless `options.noSpecialShabbat`)
37
+ * * Modern Holidays - Yom HaShoah, Yom HaAtzma'ut, etc. (unless `options.noModern`)
38
+ * * Rosh Chodesh (unless `options.noRoshChodesh`)
39
+ *
40
+ * Holiday and Torah reading schedules differ between Israel and the Disapora.
41
+ * Set `options.il=true` to use the Israeli schedule.
42
+ *
43
+ * Additional non-default event types can be specified:
44
+ * * Parashat HaShavua - weekly Torah Reading on Saturdays (`options.sedrot`)
45
+ * * Counting of the Omer (`options.omer`)
46
+ * * Shabbat Mevarchim HaChodesh on Saturday before Rosh Chodesh (`options.shabbatMevarchim`)
47
+ * * Molad announcement on Saturday before Rosh Chodesh (`options.molad`)
48
+ * * Yom Kippur Katan (`options.yomKippurKatan`)
49
+ *
50
+ * Daily Study of texts are supported by the
51
+ * {@link https://github.com/hebcal/hebcal-learning @hebcal/learning} package,
52
+ * for example:
53
+ * * Babylonian Talmud Daf Yomi (`options.dailyLearning.dafYomi`)
54
+ * * Jerusalem Talmud (Yerushalmi) Yomi (`options.dailyLearning.yerushalmi`)
55
+ * * Mishna Yomi (`options.dailyLearning.mishnaYomi`)
56
+ * * Nach Yomi (`options.dailyLearning.nachYomi`)
57
+ *
58
+ * Candle-lighting and Havdalah times are approximated using latitude and longitude
59
+ * specified by the {@link Location} class. The `Location` class contains a small
60
+ * database of cities with their associated geographic information and time-zone information.
61
+ * If you ever have any doubts about Hebcal's times, consult your local halachic authority.
62
+ * If you enter geographic coordinates above the arctic circle or antarctic circle,
63
+ * the times are guaranteed to be wrong.
64
+ *
65
+ * To add candle-lighting options, set `options.candlelighting=true` and set
66
+ * `options.location` to an instance of `Location`. By default, candle lighting
67
+ * time is 18 minutes before sundown (40 minutes for Jerusalem,
68
+ * 30 minutes for Haifa and Zikhron Ya'akov) and Havdalah is
69
+ * calculated according to Tzeit Hakochavim - Nightfall (the point when 3 small stars
70
+ * are observable in the night time sky with the naked eye). The default Havdalah
71
+ * option (Tzeit Hakochavim) is calculated when the sun is 8.5° below the horizon.
72
+ * These defaults can be changed using these options:
73
+ * * `options.candleLightingMins` - minutes before sundown to light candles
74
+ * * `options.havdalahMins` - minutes after sundown for Havdalah (typical values are 42, 50, or 72).
75
+ * Havdalah times are suppressed when `options.havdalahMins=0`.
76
+ * * `options.havdalahDeg` - degrees for solar depression for Havdalah.
77
+ * Default is 8.5 degrees for 3 small stars. Use 7.083 degrees for 3 medium-sized stars.
78
+ * Havdalah times are suppressed when `options.havdalahDeg=0`.
79
+ *
80
+ * If both `options.candlelighting=true` and `options.location` is specified,
81
+ * Chanukah candle-lighting times and minor fast start/end times will also be generated.
82
+ * Chanukah candle-lighting is at Bein HaShmashos (13.5 minutes before
83
+ * the sun is 7.083° below the horizon in the evening)
84
+ * on weekdays, at regular candle-lighting time on Fridays, and at regular Havdalah time on
85
+ * Saturday night (see above).
86
+ *
87
+ * Minor fasts begin at Alot HaShachar (sun is 16.1° below the horizon in the morning) and
88
+ * end when 3 medium-sized stars are observable in the night sky (sun is 7.083° below the horizon
89
+ * in the evening).
90
+ *
91
+ * Two options also exist for generating an Event with the Hebrew date:
92
+ * * `options.addHebrewDates` - print the Hebrew date for the entire date range
93
+ * * `options.addHebrewDatesForEvents` - print the Hebrew date for dates with some events
94
+ *
95
+ * Lastly, translation and transliteration of event titles is controlled by
96
+ * `options.locale` and the {@link Locale} API.
97
+ * `@hebcal/core` supports three locales by default:
98
+ * * `en` - default, Sephardic transliterations (e.g. "Shabbat")
99
+ * * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
100
+ * * `he` - Hebrew (e.g. "שַׁבָּת")
101
+ *
102
+ * Additional locales (such as `ru` or `fr`) are supported by the
103
+ * {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
104
+ *
105
+ * @example
106
+ * import {HebrewCalendar, HDate, Location, Event} from '@hebcal/core';
107
+ * const options = {
108
+ * year: 1981,
109
+ * isHebrewYear: false,
110
+ * candlelighting: true,
111
+ * location: Location.lookup('San Francisco'),
112
+ * sedrot: true,
113
+ * omer: true,
114
+ * };
115
+ * const events = HebrewCalendar.calendar(options);
116
+ * for (const ev of events) {
117
+ * const hd = ev.getDate();
118
+ * const date = hd.greg();
119
+ * console.log(date.toLocaleDateString(), ev.render('en'), hd.toString());
120
+ * }
121
+ * @param {CalOptions} [options={}]
122
+ * @return {Event[]}
123
+ */
124
+ static calendar(options?: CalOptions | undefined): Event[];
125
+ /**
126
+ * Calculates a birthday or anniversary (non-yahrzeit).
127
+ * `hyear` must be after original `gdate` of anniversary.
128
+ * Returns `undefined` when requested year preceeds or is same as original year.
129
+ *
130
+ * Hebcal uses the algorithm defined in "Calendrical Calculations"
131
+ * by Edward M. Reingold and Nachum Dershowitz.
132
+ *
133
+ * The birthday of someone born in Adar of an ordinary year or Adar II of
134
+ * a leap year is also always in the last month of the year, be that Adar
135
+ * or Adar II. The birthday in an ordinary year of someone born during the
136
+ * first 29 days of Adar I in a leap year is on the corresponding day of Adar;
137
+ * in a leap year, the birthday occurs in Adar I, as expected.
138
+ *
139
+ * Someone born on the thirtieth day of Marcheshvan, Kislev, or Adar I
140
+ * has his birthday postponed until the first of the following month in
141
+ * years where that day does not occur. [Calendrical Calculations p. 111]
142
+ * @example
143
+ * import {HebrewCalendar} from '@hebcal/core';
144
+ * const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
145
+ * const hd = HebrewCalendar.getBirthdayOrAnniversary(5780, dt); // '1 Nisan 5780'
146
+ * console.log(hd.greg().toLocaleDateString('en-US')); // '3/26/2020'
147
+ * @param {number} hyear Hebrew year
148
+ * @param {Date|HDate} gdate Gregorian or Hebrew date of event
149
+ * @return {HDate} anniversary occurring in `hyear`
150
+ */
151
+ static getBirthdayOrAnniversary(hyear: number, gdate: Date | HDate): HDate;
152
+ /**
153
+ * Calculates yahrzeit.
154
+ * `hyear` must be after original `gdate` of death.
155
+ * Returns `undefined` when requested year preceeds or is same as original year.
156
+ *
157
+ * Hebcal uses the algorithm defined in "Calendrical Calculations"
158
+ * by Edward M. Reingold and Nachum Dershowitz.
159
+ *
160
+ * The customary anniversary date of a death is more complicated and depends
161
+ * also on the character of the year in which the first anniversary occurs.
162
+ * There are several cases:
163
+ *
164
+ * * If the date of death is Marcheshvan 30, the anniversary in general depends
165
+ * on the first anniversary; if that first anniversary was not Marcheshvan 30,
166
+ * use the day before Kislev 1.
167
+ * * If the date of death is Kislev 30, the anniversary in general again depends
168
+ * on the first anniversary — if that was not Kislev 30, use the day before
169
+ * Tevet 1.
170
+ * * If the date of death is Adar II, the anniversary is the same day in the
171
+ * last month of the Hebrew year (Adar or Adar II).
172
+ * * If the date of death is Adar I 30, the anniversary in a Hebrew year that
173
+ * is not a leap year (in which Adar only has 29 days) is the last day in
174
+ * Shevat.
175
+ * * In all other cases, use the normal (that is, same month number) anniversary
176
+ * of the date of death. [Calendrical Calculations p. 113]
177
+ * @example
178
+ * import {HebrewCalendar} from '@hebcal/core';
179
+ * const dt = new Date(2014, 2, 2); // '2014-03-02' == '30 Adar I 5774'
180
+ * const hd = HebrewCalendar.getYahrzeit(5780, dt); // '30 Sh\'vat 5780'
181
+ * console.log(hd.greg().toLocaleDateString('en-US')); // '2/25/2020'
182
+ * @param {number} hyear Hebrew year
183
+ * @param {Date|HDate} gdate Gregorian or Hebrew date of death
184
+ * @return {HDate} anniversary occurring in hyear
185
+ */
186
+ static getYahrzeit(hyear: number, gdate: Date | HDate): HDate;
187
+ /**
188
+ * Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
189
+ * `HDate.toString()`. These events must filtered especially for `flags.IL_ONLY`
190
+ * or `flags.CHUL_ONLY` depending on Israel vs. Diaspora holiday scheme.
191
+ * @function
192
+ * @param {number} year Hebrew year
193
+ * @return {Map<string,Event[]>}
194
+ */
195
+ static getHolidaysForYear(year: number): Map<string, Event[]>;
196
+ /**
197
+ * Returns an array of holidays for the year
198
+ * @param {number} year Hebrew year
199
+ * @param {boolean} il use the Israeli schedule for holidays
200
+ * @return {Event[]}
201
+ */
202
+ static getHolidaysForYearArray(year: number, il: boolean): Event[];
203
+ /**
204
+ * Returns an array of Events on this date (or `undefined` if no events)
205
+ * @param {HDate|Date|number} date Hebrew Date, Gregorian date, or absolute R.D. day number
206
+ * @param {boolean} [il] use the Israeli schedule for holidays
207
+ * @return {Event[]}
208
+ */
209
+ static getHolidaysOnDate(date: HDate | Date | number, il?: boolean | undefined): Event[];
210
+ /**
211
+ * Eruv Tavshilin
212
+ * @param {Date | HDate} date
213
+ * @param {boolean} il
214
+ * @return {boolean}
215
+ */
216
+ static eruvTavshilin(date: Date | HDate, il: boolean): boolean;
217
+ /**
218
+ * Helper function to format a 23-hour (00:00-23:59) time in US format ("8:13pm") or
219
+ * keep as "20:13" for any other locale/country. Uses {@link CalOptions} to determine
220
+ * locale.
221
+ * If `options.hour12` is `false`, locale is ignored and always returns 24-hour time.
222
+ * If `options.hour12` is `true`, locale is ignored and always returns 12-hour time.
223
+ * @param {string} timeStr - original time like "20:30"
224
+ * @param {string} suffix - "p" or "pm" or " P.M.". Add leading space if you want it
225
+ * @param {CalOptions} options
226
+ * @return {string}
227
+ */
228
+ static reformatTimeStr(timeStr: string, suffix: string, options: CalOptions): string;
229
+ /** @return {string} */
230
+ static version(): string;
231
+ /**
232
+ * Convenience function to create an instance of `Sedra` or reuse a previously
233
+ * created and cached instance.
234
+ * @function
235
+ * @param {number} hyear
236
+ * @param {boolean} il
237
+ * @return {Sedra}
238
+ */
239
+ static getSedra(hyear: number, il: boolean): Sedra;
240
+ /**
241
+ * Return a number containing information on what Hallel is said on that day.
242
+ *
243
+ * Whole Hallel is said on Chanukah, the first Yom Tov of Pesach, Shavuot, Sukkot,
244
+ * Yom Ha'atzmaut, and Yom Yerushalayim.
245
+ *
246
+ * Half Hallel is said on Rosh Chodesh (not Rosh Hashanah), and the last 6 days of Pesach.
247
+ *
248
+ * The number is one of the following values:
249
+ *
250
+ * 0 - No Hallel
251
+ * 1 - Half Hallel
252
+ * 2 - Whole Hallel
253
+ *
254
+ * @param {HDate} hdate
255
+ * @param {boolean} il
256
+ * @return {number}
257
+ */
258
+ static hallel(hdate: HDate, il: boolean): number;
259
+ /**
260
+ * Return details on what Tachanun (or Tzidchatcha on Shabbat) is said on `hdate`.
261
+ *
262
+ * Tachanun is not said on Rosh Chodesh, the month of Nisan, Lag Baomer,
263
+ * Rosh Chodesh Sivan until Isru Chag, Tisha B'av, 15 Av, Erev Rosh Hashanah,
264
+ * Rosh Hashanah, Erev Yom Kippur until after Simchat Torah, Chanukah,
265
+ * Tu B'shvat, Purim and Shushan Purim, and Purim and Shushan Purim Katan.
266
+ *
267
+ * In some congregations Tachanun is not said until from Rosh Chodesh Sivan
268
+ * until 14th Sivan, Sukkot until after Rosh Chodesh Cheshvan, Pesach Sheini,
269
+ * Yom Ha'atzmaut, and Yom Yerushalayim.
270
+ *
271
+ * Tachanun is not said at Mincha on days before it is not said at Shacharit.
272
+ *
273
+ * Tachanun is not said at Shacharit on Shabbat, but is at Mincha, usually.
274
+ * @param {HDate} hdate
275
+ * @param {boolean} il
276
+ * @return {TachanunResult}
277
+ */
278
+ static tachanun(hdate: HDate, il: boolean): TachanunResult;
279
+ }
280
+ /**
281
+ * Options to configure which events are returned
282
+ */
283
+ export type CalOptions = {
284
+ /**
285
+ * - latitude/longitude/tzid used for candle-lighting
286
+ */
287
+ location?: Location | undefined;
288
+ /**
289
+ * - Gregorian or Hebrew year
290
+ */
291
+ year?: number | undefined;
292
+ /**
293
+ * - to interpret year as Hebrew year
294
+ */
295
+ isHebrewYear?: boolean | undefined;
296
+ /**
297
+ * - Gregorian or Hebrew month (to filter results to a single month)
298
+ */
299
+ month?: number | undefined;
300
+ /**
301
+ * - generate calendar for multiple years (default 1)
302
+ */
303
+ numYears?: number | undefined;
304
+ /**
305
+ * - use specific start date (requires end date)
306
+ */
307
+ start?: number | HDate | Date | undefined;
308
+ /**
309
+ * - use specific end date (requires start date)
310
+ */
311
+ end?: number | HDate | Date | undefined;
312
+ /**
313
+ * - calculate candle-lighting and havdalah times
314
+ */
315
+ candlelighting?: boolean | undefined;
316
+ /**
317
+ * - minutes before sundown to light candles (default 18)
318
+ */
319
+ candleLightingMins?: number | undefined;
320
+ /**
321
+ * - minutes after sundown for Havdalah (typical values are 42, 50, or 72).
322
+ * If `undefined` (the default), calculate Havdalah according to Tzeit Hakochavim -
323
+ * Nightfall (the point when 3 small stars are observable in the night time sky with
324
+ * the naked eye). If `0`, Havdalah times are suppressed.
325
+ */
326
+ havdalahMins?: number | undefined;
327
+ /**
328
+ * - degrees for solar depression for Havdalah.
329
+ * Default is 8.5 degrees for 3 small stars. use 7.083 degrees for 3 medium-sized stars
330
+ * (observed by Dr. Baruch (Berthold) Cohn in his luach published in France in 1899).
331
+ * If `0`, Havdalah times are suppressed.
332
+ */
333
+ havdalahDeg?: number | undefined;
334
+ /**
335
+ * - degrees for solar depression for end of fast days.
336
+ * Default is 7.083 degrees for 3 medium-sized stars. Other commonly-used values include
337
+ * 6.45 degrees, as calculated by Rabbi Yechiel Michel Tucazinsky.
338
+ */
339
+ fastEndDeg?: number | undefined;
340
+ /**
341
+ * - use elevation for calculations (default `false`).
342
+ * If `true`, use elevation to affect the calculation of all sunrise/sunset based zmanim.
343
+ * Note: there are some zmanim such as degree-based zmanim that are driven by the amount
344
+ * of light in the sky and are not impacted by elevation.
345
+ * These zmanim intentionally do not support elevation adjustment.
346
+ */
347
+ useElevation?: boolean | undefined;
348
+ /**
349
+ * - calculate parashah hashavua on Saturdays
350
+ */
351
+ sedrot?: boolean | undefined;
352
+ /**
353
+ * - Israeli holiday and sedra schedule
354
+ */
355
+ il?: boolean | undefined;
356
+ /**
357
+ * - suppress minor fasts
358
+ */
359
+ noMinorFast?: boolean | undefined;
360
+ /**
361
+ * - suppress modern holidays
362
+ */
363
+ noModern?: boolean | undefined;
364
+ /**
365
+ * - suppress Rosh Chodesh
366
+ */
367
+ noRoshChodesh?: boolean | undefined;
368
+ /**
369
+ * - add Shabbat Mevarchim
370
+ */
371
+ shabbatMevarchim?: boolean | undefined;
372
+ /**
373
+ * - suppress Special Shabbat
374
+ */
375
+ noSpecialShabbat?: boolean | undefined;
376
+ /**
377
+ * - suppress regular holidays
378
+ */
379
+ noHolidays?: boolean | undefined;
380
+ /**
381
+ * - include Days of the Omer
382
+ */
383
+ omer?: boolean | undefined;
384
+ /**
385
+ * - include event announcing the molad
386
+ */
387
+ molad?: boolean | undefined;
388
+ /**
389
+ * - use Ashkenazi transliterations for event titles (default Sephardi transliterations)
390
+ */
391
+ ashkenazi?: boolean | undefined;
392
+ /**
393
+ * - translate event titles according to a locale
394
+ * Default value is `en`, also built-in are `he` and `ashkenazi`.
395
+ * Additional locales (such as `ru` or `fr`) are provided by the
396
+ * {@link https://github.com/hebcal/hebcal-locales @hebcal/locales} package
397
+ */
398
+ locale?: string | undefined;
399
+ /**
400
+ * - print the Hebrew date for the entire date range
401
+ */
402
+ addHebrewDates?: boolean | undefined;
403
+ /**
404
+ * - print the Hebrew date for dates with some events
405
+ */
406
+ addHebrewDatesForEvents?: boolean | undefined;
407
+ /**
408
+ * - use bitmask from `flags` to filter events
409
+ */
410
+ mask?: number | undefined;
411
+ /**
412
+ * - include Yom Kippur Katan (default `false`).
413
+ * יוֹם כִּפּוּר קָטָן is a minor day of atonement occurring monthly on the day preceeding each Rosh Chodesh.
414
+ * Yom Kippur Katan is omitted in Elul (on the day before Rosh Hashanah),
415
+ * Tishrei (Yom Kippur has just passed), Kislev (due to Chanukah)
416
+ * and Nisan (fasting not permitted during Nisan).
417
+ * When Rosh Chodesh occurs on Shabbat or Sunday, Yom Kippur Katan is observed on the preceding Thursday.
418
+ * See {@link https://en.wikipedia.org/wiki/Yom_Kippur_Katan#Practices Wikipedia Yom Kippur Katan practices}
419
+ */
420
+ yomKippurKatan?: boolean | undefined;
421
+ /**
422
+ * - Whether to use 12-hour time (as opposed to 24-hour time).
423
+ * Possible values are `true` and `false`; the default is locale dependent.
424
+ */
425
+ hour12?: boolean | undefined;
426
+ /**
427
+ * - map of options to enable daily study calendars
428
+ * such as `dafYomi`, `mishnaYomi`, `nachYomi` with value `true`. For `yerushalmi`
429
+ * the value should be a `number` for edition (`1` for Vilna, `2` for Schottenstein).
430
+ */
431
+ dailyLearning?: {
432
+ [x: string]: any;
433
+ } | undefined;
434
+ };
435
+ export type TachanunResult = {
436
+ /**
437
+ * Tachanun is said at Shacharit
438
+ */
439
+ shacharit: boolean;
440
+ /**
441
+ * Tachanun is said at Mincha
442
+ */
443
+ mincha: boolean;
444
+ /**
445
+ * All congregations say Tachanun on the day
446
+ */
447
+ allCongs: boolean;
448
+ };
449
+ export type Event = import('./event').Event;
450
+ import { HDate } from '@hebcal/hdate';
451
+ import { Location } from './location.js';
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
3
+ * `HDate.toString()`. These events must filtered especially for `flags.IL_ONLY`
4
+ * or `flags.CHUL_ONLY` depending on Israel vs. Diaspora holiday scheme.
5
+ * @private
6
+ * @param {number} year Hebrew year
7
+ * @return {Map<string,Event[]>}
8
+ */
9
+ export function getHolidaysForYear_(year: number): Map<string, Event[]>;
10
+ /** Represents a built-in holiday like Pesach, Purim or Tu BiShvat */
11
+ export class HolidayEvent extends Event {
12
+ /** @return {string} */
13
+ urlDateSuffix(): string;
14
+ }
15
+ /** Represents Rosh Chodesh, the beginning of a new month */
16
+ export class RoshChodeshEvent extends HolidayEvent {
17
+ /**
18
+ * Constructs Rosh Chodesh event
19
+ * @param {HDate} date Hebrew date event occurs
20
+ * @param {string} monthName Hebrew month name (not translated)
21
+ */
22
+ constructor(date: HDate, monthName: string);
23
+ }
24
+ /**
25
+ * Because Asara B'Tevet often occurs twice in the same Gregorian year,
26
+ * we subclass HolidayEvent to override the `url()` method.
27
+ */
28
+ export class AsaraBTevetEvent extends HolidayEvent {
29
+ }
30
+ /** Represents Mevarchim haChodesh, the announcement of the new month */
31
+ export class MevarchimChodeshEvent extends Event {
32
+ /**
33
+ * Constructs Mevarchim haChodesh event
34
+ * @param {HDate} date Hebrew date event occurs
35
+ * @param {string} monthName Hebrew month name (not translated)
36
+ * @param {string} [memo]
37
+ */
38
+ constructor(date: HDate, monthName: string, memo?: string | undefined);
39
+ monthName: string;
40
+ memo: string;
41
+ }
42
+ /** Represents Rosh Hashana, the Jewish New Year */
43
+ export class RoshHashanaEvent extends HolidayEvent {
44
+ /**
45
+ * @private
46
+ * @param {HDate} date Hebrew date event occurs
47
+ * @param {number} hyear Hebrew year
48
+ * @param {number} mask optional holiday flags
49
+ */
50
+ private constructor();
51
+ hyear: number;
52
+ }
53
+ /** YKK is minor day of atonement on the day preceeding each Rosh Chodesh */
54
+ export class YomKippurKatanEvent extends HolidayEvent {
55
+ /**
56
+ * @private
57
+ * @param {HDate} date Hebrew date event occurs
58
+ * @param {string} nextMonthName name of the upcoming month
59
+ */
60
+ private constructor();
61
+ nextMonthName: string;
62
+ memo: string;
63
+ }
64
+ import { Event } from './event.js';
65
+ import { HDate } from '@hebcal/hdate';