@hebcal/core 6.0.6 → 6.0.7
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/README.md +42 -27
- package/dist/bundle.js +13 -8
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.min.js +3 -3
- package/dist/bundle.min.js.map +1 -1
- package/dist/esm/DailyLearning.js +1 -1
- package/dist/esm/HebrewDateEvent.js +1 -1
- package/dist/esm/HolidayEvent.js +1 -1
- package/dist/esm/MevarchimChodeshEvent.js +1 -1
- package/dist/esm/ParshaEvent.js +1 -1
- package/dist/esm/TimedEvent.js +1 -1
- package/dist/esm/YomKippurKatanEvent.js +1 -1
- package/dist/esm/ashkenazi.po.js +1 -1
- package/dist/esm/calendar.js +1 -1
- package/dist/esm/candles.js +1 -1
- package/dist/esm/event.js +1 -1
- package/dist/esm/getStartAndEnd.js +1 -1
- package/dist/esm/hallel.js +1 -1
- package/dist/esm/he-x-NoNikud.po.d.ts +2 -0
- package/dist/esm/he-x-NoNikud.po.js +2 -2
- package/dist/esm/he-x-NoNikud.po.js.map +1 -1
- package/dist/esm/he.po.d.ts +1 -0
- package/dist/esm/he.po.js +2 -2
- package/dist/esm/he.po.js.map +1 -1
- package/dist/esm/hebcal.js +1 -1
- package/dist/esm/holidays.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/isAssurBemlacha.js +1 -1
- package/dist/esm/locale.js +1 -1
- package/dist/esm/location.js +2 -2
- package/dist/esm/location.js.map +1 -1
- package/dist/esm/modern.js +1 -1
- package/dist/esm/molad.js +1 -1
- package/dist/esm/omer.js +1 -1
- package/dist/esm/parshaName.js +1 -1
- package/dist/esm/parshaYear.d.ts +2 -2
- package/dist/esm/parshaYear.js +1 -1
- package/dist/esm/parshaYear.js.map +1 -1
- package/dist/esm/pkgVersion.d.ts +1 -1
- package/dist/esm/pkgVersion.js +2 -2
- package/dist/esm/pkgVersion.js.map +1 -1
- package/dist/esm/reformatTimeStr.js +1 -1
- package/dist/esm/sedra.d.ts +5 -1
- package/dist/esm/sedra.js +9 -3
- package/dist/esm/sedra.js.map +1 -1
- package/dist/esm/staticHolidays.js +1 -2
- package/dist/esm/staticHolidays.js.map +1 -1
- package/dist/esm/tachanun.js +1 -1
- package/dist/esm/zmanim.js +1 -1
- package/dist/he-x-NoNikud.po.d.ts +2 -0
- package/dist/he.po.d.ts +1 -0
- package/dist/parshaYear.d.ts +2 -2
- package/dist/pkgVersion.d.ts +1 -1
- package/dist/po2json.d.ts +1 -0
- package/dist/po2json.js +41 -0
- package/dist/sedra.d.ts +5 -1
- package/dist/size-demo/dist/getHoliday.d.ts +1944 -0
- package/dist/size-demo/dist/getHoliday.js +3712 -0
- package/dist/size-demo/dist/parshiyot.js +10662 -0
- package/dist/size-demo/dist/sedra.d.ts +1411 -0
- package/dist/size-demo/dist/sedra.js +2359 -0
- package/dist/size-demo/dist/tachanun.d.ts +1015 -0
- package/dist/size-demo/dist/tachanun.js +1755 -0
- package/dist/size-demo/getHoliday.d.ts +1 -0
- package/dist/size-demo/getHoliday.js +3 -0
- package/dist/size-demo/parshiyot.d.ts +1 -0
- package/dist/size-demo/parshiyot.js +11 -0
- package/dist/size-demo/rollup.config.d.ts +3 -0
- package/dist/size-demo/rollup.config.js +47 -0
- package/dist/size-demo/sedra.d.ts +1 -0
- package/dist/size-demo/sedra.js +3 -0
- package/dist/size-demo/tachanun.d.ts +1 -0
- package/dist/size-demo/tachanun.js +3 -0
- package/dist/src/CalOptions.d.ts +168 -0
- package/dist/src/CalOptions.js +1 -0
- package/dist/src/DailyLearning.d.ts +32 -0
- package/dist/src/DailyLearning.js +55 -0
- package/dist/src/HebrewDateEvent.d.ts +37 -0
- package/dist/src/HebrewDateEvent.js +72 -0
- package/dist/src/HolidayEvent.d.ts +83 -0
- package/dist/src/HolidayEvent.js +186 -0
- package/dist/src/MevarchimChodeshEvent.d.ts +26 -0
- package/dist/src/MevarchimChodeshEvent.js +50 -0
- package/dist/src/ParshaEvent.d.ts +19 -0
- package/dist/src/ParshaEvent.js +43 -0
- package/dist/src/TimedEvent.d.ts +47 -0
- package/dist/src/TimedEvent.js +92 -0
- package/dist/src/YomKippurKatanEvent.d.ts +23 -0
- package/dist/src/YomKippurKatanEvent.js +38 -0
- package/dist/src/ashkenazi.po.d.ts +70 -0
- package/dist/src/ashkenazi.po.js +1 -0
- package/dist/src/calendar.d.ts +111 -0
- package/dist/src/calendar.js +660 -0
- package/dist/src/candles.d.ts +44 -0
- package/dist/src/candles.js +163 -0
- package/dist/src/event.d.ts +188 -0
- package/dist/src/event.js +233 -0
- package/dist/src/getStartAndEnd.d.ts +6 -0
- package/dist/src/getStartAndEnd.js +97 -0
- package/dist/src/hallel.d.ts +6 -0
- package/dist/src/hallel.js +47 -0
- package/dist/src/he-x-NoNikud.po.d.ts +15 -0
- package/dist/src/he-x-NoNikud.po.js +1 -0
- package/dist/src/he.po.d.ts +195 -0
- package/dist/src/he.po.js +1 -0
- package/dist/src/hebcal.d.ts +260 -0
- package/dist/src/hebcal.js +332 -0
- package/dist/src/holidays.d.ts +22 -0
- package/dist/src/holidays.js +288 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/src/index.js +24 -0
- package/dist/src/isAssurBemlacha.d.ts +9 -0
- package/dist/src/isAssurBemlacha.js +62 -0
- package/dist/src/locale.d.ts +2 -0
- package/dist/src/locale.js +11 -0
- package/dist/src/location.d.ts +73 -0
- package/dist/src/location.js +306 -0
- package/dist/src/modern.d.ts +18 -0
- package/dist/src/modern.js +59 -0
- package/dist/src/molad.d.ts +62 -0
- package/dist/src/molad.js +169 -0
- package/dist/src/omer.d.ts +53 -0
- package/dist/src/omer.js +302 -0
- package/dist/src/parshaName.d.ts +2 -0
- package/dist/src/parshaName.js +13 -0
- package/dist/src/parshaYear.d.ts +9 -0
- package/dist/src/parshaYear.js +24 -0
- package/dist/src/pkgVersion.d.ts +2 -0
- package/dist/src/pkgVersion.js +2 -0
- package/dist/src/reformatTimeStr.d.ts +8 -0
- package/dist/src/reformatTimeStr.js +48 -0
- package/dist/src/sedra.d.ts +95 -0
- package/dist/src/sedra.js +477 -0
- package/dist/src/staticHolidays.d.ts +176 -0
- package/dist/src/staticHolidays.js +614 -0
- package/dist/src/tachanun.d.ts +29 -0
- package/dist/src/tachanun.js +120 -0
- package/dist/src/zmanim.d.ts +347 -0
- package/dist/src/zmanim.js +579 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +9 -0
- package/package.json +11 -8
|
@@ -0,0 +1,1944 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
declare function mod$1(x: any, y: any): number;
|
|
5
|
+
declare function mod$1(x: any, y: any): number;
|
|
6
|
+
declare function mod$1(x: any, y: any): number;
|
|
7
|
+
declare function mod$1(x: any, y: any): number;
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
declare function quotient(x: any, y: any): number;
|
|
12
|
+
declare function quotient(x: any, y: any): number;
|
|
13
|
+
declare function quotient(x: any, y: any): number;
|
|
14
|
+
declare function quotient(x: any, y: any): number;
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
* @param abs - R.D. number of days
|
|
18
|
+
*/
|
|
19
|
+
declare function yearFromFixed(abs: any): number;
|
|
20
|
+
declare function yearFromFixed(abs: any): number;
|
|
21
|
+
declare function yearFromFixed(abs: any): number;
|
|
22
|
+
declare function yearFromFixed(abs: any): number;
|
|
23
|
+
/**
|
|
24
|
+
* Returns true if the Gregorian year is a leap year
|
|
25
|
+
* @param year Gregorian year
|
|
26
|
+
*/
|
|
27
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
28
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
29
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
30
|
+
declare function isGregLeapYear(year: any): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Number of days in the Gregorian month for given year
|
|
33
|
+
* @param month Gregorian month (1=January, 12=December)
|
|
34
|
+
* @param year Gregorian year
|
|
35
|
+
*/
|
|
36
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
37
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
38
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
39
|
+
declare function daysInGregMonth(month: any, year: any): number;
|
|
40
|
+
/**
|
|
41
|
+
* Returns true if the object is a Javascript Date
|
|
42
|
+
*/
|
|
43
|
+
declare function isDate(obj: any): boolean;
|
|
44
|
+
declare function isDate(obj: any): boolean;
|
|
45
|
+
declare function isDate(obj: any): boolean;
|
|
46
|
+
declare function isDate(obj: any): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @private
|
|
49
|
+
* @param year
|
|
50
|
+
* @param month (1-12)
|
|
51
|
+
* @param day (1-31)
|
|
52
|
+
*/
|
|
53
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
54
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
55
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
56
|
+
declare function toFixed(year: any, month: any, day: any): any;
|
|
57
|
+
/**
|
|
58
|
+
* Converts Gregorian date to absolute R.D. (Rata Die) days
|
|
59
|
+
* @param date Gregorian date
|
|
60
|
+
*/
|
|
61
|
+
declare function greg2abs(date: any): any;
|
|
62
|
+
declare function greg2abs(date: any): any;
|
|
63
|
+
declare function greg2abs(date: any): any;
|
|
64
|
+
declare function greg2abs(date: any): any;
|
|
65
|
+
/**
|
|
66
|
+
* Converts from Rata Die (R.D. number) to Gregorian date.
|
|
67
|
+
* See the footnote on page 384 of ``Calendrical Calculations, Part II:
|
|
68
|
+
* Three Historical Calendars'' by E. M. Reingold, N. Dershowitz, and S. M.
|
|
69
|
+
* Clamen, Software--Practice and Experience, Volume 23, Number 4
|
|
70
|
+
* (April, 1993), pages 383-404 for an explanation.
|
|
71
|
+
*
|
|
72
|
+
* Note that this function returns the daytime portion of the date.
|
|
73
|
+
* For example, the 15th of Cheshvan 5769 began at sundown on
|
|
74
|
+
* 12 November 2008 and continues through 13 November 2008. This
|
|
75
|
+
* function would return only the date 13 November 2008.
|
|
76
|
+
* @param abs - R.D. number of days
|
|
77
|
+
* @example
|
|
78
|
+
* const abs = hebrew2abs(5769, months.CHESHVAN, 15);
|
|
79
|
+
* const date = abs2greg(abs); // 13 November 2008
|
|
80
|
+
* const year = date.getFullYear(); // 2008
|
|
81
|
+
* const monthNum = date.getMonth() + 1; // 11
|
|
82
|
+
* const day = date.getDate(); // 13
|
|
83
|
+
*/
|
|
84
|
+
declare function abs2greg(abs: any): Date;
|
|
85
|
+
declare function abs2greg(abs: any): Date;
|
|
86
|
+
declare function abs2greg(abs: any): Date;
|
|
87
|
+
declare function abs2greg(abs: any): Date;
|
|
88
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
89
|
+
/**
|
|
90
|
+
* Removes niqqud from Hebrew string
|
|
91
|
+
*/
|
|
92
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
93
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
94
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
95
|
+
declare function hebrewStripNikkud(str: any): any;
|
|
96
|
+
/**
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
declare function assertNumber(n: any, name: any): void;
|
|
100
|
+
declare function assertNumber(n: any, name: any): void;
|
|
101
|
+
declare function assertNumber(n: any, name: any): void;
|
|
102
|
+
declare function assertNumber(n: any, name: any): void;
|
|
103
|
+
/**
|
|
104
|
+
* Converts Hebrew date to R.D. (Rata Die) fixed days.
|
|
105
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
|
|
106
|
+
* Calendar.
|
|
107
|
+
* @param year Hebrew year
|
|
108
|
+
* @param month Hebrew month
|
|
109
|
+
* @param day Hebrew date (1-30)
|
|
110
|
+
* @example
|
|
111
|
+
* const abs = hebrew2abs(5769, months.CHESHVAN, 15);
|
|
112
|
+
*/
|
|
113
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
114
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
115
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
116
|
+
declare function hebrew2abs(year: any, month: any, day: any): number;
|
|
117
|
+
/**
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
declare function newYear(year: any): number;
|
|
121
|
+
declare function newYear(year: any): number;
|
|
122
|
+
declare function newYear(year: any): number;
|
|
123
|
+
declare function newYear(year: any): number;
|
|
124
|
+
/**
|
|
125
|
+
* Converts absolute R.D. days to Hebrew date
|
|
126
|
+
* @param abs absolute R.D. days
|
|
127
|
+
*/
|
|
128
|
+
declare function abs2hebrew(abs: any): {
|
|
129
|
+
yy: number;
|
|
130
|
+
mm: number;
|
|
131
|
+
dd: number;
|
|
132
|
+
};
|
|
133
|
+
declare function abs2hebrew(abs: any): {
|
|
134
|
+
yy: number;
|
|
135
|
+
mm: number;
|
|
136
|
+
dd: number;
|
|
137
|
+
};
|
|
138
|
+
declare function abs2hebrew(abs: any): {
|
|
139
|
+
yy: number;
|
|
140
|
+
mm: number;
|
|
141
|
+
dd: number;
|
|
142
|
+
};
|
|
143
|
+
declare function abs2hebrew(abs: any): {
|
|
144
|
+
yy: number;
|
|
145
|
+
mm: number;
|
|
146
|
+
dd: number;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Returns true if Hebrew year is a leap year
|
|
150
|
+
* @param year Hebrew year
|
|
151
|
+
*/
|
|
152
|
+
declare function isLeapYear(year: any): boolean;
|
|
153
|
+
declare function isLeapYear(year: any): boolean;
|
|
154
|
+
declare function isLeapYear(year: any): boolean;
|
|
155
|
+
declare function isLeapYear(year: any): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
158
|
+
* @param year Hebrew year
|
|
159
|
+
*/
|
|
160
|
+
declare function monthsInYear(year: any): number;
|
|
161
|
+
declare function monthsInYear(year: any): number;
|
|
162
|
+
declare function monthsInYear(year: any): number;
|
|
163
|
+
declare function monthsInYear(year: any): number;
|
|
164
|
+
/**
|
|
165
|
+
* Number of days in Hebrew month in a given year (29 or 30)
|
|
166
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
167
|
+
* @param year Hebrew year
|
|
168
|
+
*/
|
|
169
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
170
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
171
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
172
|
+
declare function daysInMonth(month: any, year: any): 30 | 29;
|
|
173
|
+
/**
|
|
174
|
+
* Returns a transliterated string name of Hebrew month in year,
|
|
175
|
+
* for example 'Elul' or 'Cheshvan'.
|
|
176
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
177
|
+
* @param year Hebrew year
|
|
178
|
+
*/
|
|
179
|
+
declare function getMonthName(month: any, year: any): string;
|
|
180
|
+
declare function getMonthName(month: any, year: any): string;
|
|
181
|
+
declare function getMonthName(month: any, year: any): string;
|
|
182
|
+
declare function getMonthName(month: any, year: any): string;
|
|
183
|
+
/**
|
|
184
|
+
* Days from sunday prior to start of Hebrew calendar to mean
|
|
185
|
+
* conjunction of Tishrei in Hebrew YEAR
|
|
186
|
+
* @param year Hebrew year
|
|
187
|
+
*/
|
|
188
|
+
declare function elapsedDays(year: any): number;
|
|
189
|
+
declare function elapsedDays(year: any): number;
|
|
190
|
+
declare function elapsedDays(year: any): number;
|
|
191
|
+
declare function elapsedDays(year: any): number;
|
|
192
|
+
/**
|
|
193
|
+
* Days from sunday prior to start of Hebrew calendar to mean
|
|
194
|
+
* conjunction of Tishrei in Hebrew YEAR
|
|
195
|
+
* @private
|
|
196
|
+
* @param year Hebrew year
|
|
197
|
+
*/
|
|
198
|
+
declare function elapsedDays0(year: any): number;
|
|
199
|
+
declare function elapsedDays0(year: any): number;
|
|
200
|
+
declare function elapsedDays0(year: any): number;
|
|
201
|
+
declare function elapsedDays0(year: any): number;
|
|
202
|
+
/**
|
|
203
|
+
* Number of days in the hebrew YEAR.
|
|
204
|
+
* A common Hebrew calendar year can have a length of 353, 354 or 355 days
|
|
205
|
+
* A leap Hebrew calendar year can have a length of 383, 384 or 385 days
|
|
206
|
+
* @param year Hebrew year
|
|
207
|
+
*/
|
|
208
|
+
declare function daysInYear(year: any): number;
|
|
209
|
+
declare function daysInYear(year: any): number;
|
|
210
|
+
declare function daysInYear(year: any): number;
|
|
211
|
+
declare function daysInYear(year: any): number;
|
|
212
|
+
/**
|
|
213
|
+
* true if Cheshvan is long in Hebrew year
|
|
214
|
+
* @param year Hebrew year
|
|
215
|
+
*/
|
|
216
|
+
declare function longCheshvan(year: any): boolean;
|
|
217
|
+
declare function longCheshvan(year: any): boolean;
|
|
218
|
+
declare function longCheshvan(year: any): boolean;
|
|
219
|
+
declare function longCheshvan(year: any): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* true if Kislev is short in Hebrew year
|
|
222
|
+
* @param year Hebrew year
|
|
223
|
+
*/
|
|
224
|
+
declare function shortKislev(year: any): boolean;
|
|
225
|
+
declare function shortKislev(year: any): boolean;
|
|
226
|
+
declare function shortKislev(year: any): boolean;
|
|
227
|
+
declare function shortKislev(year: any): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Converts Hebrew month string name to numeric
|
|
230
|
+
* @param monthName monthName
|
|
231
|
+
*/
|
|
232
|
+
declare function monthFromName(monthName: any): number;
|
|
233
|
+
declare function monthFromName(monthName: any): number;
|
|
234
|
+
declare function monthFromName(monthName: any): number;
|
|
235
|
+
declare function monthFromName(monthName: any): number;
|
|
236
|
+
declare function num2digits(num: any): number[];
|
|
237
|
+
declare function num2digits(num: any): number[];
|
|
238
|
+
declare function num2digits(num: any): number[];
|
|
239
|
+
declare function num2digits(num: any): number[];
|
|
240
|
+
/**
|
|
241
|
+
* Converts a numerical value to a string of Hebrew letters.
|
|
242
|
+
*
|
|
243
|
+
* When specifying years of the Hebrew calendar in the present millennium,
|
|
244
|
+
* we omit the thousands (which is presently 5 [ה]).
|
|
245
|
+
* @example
|
|
246
|
+
* gematriya(5774) // 'תשע״ד' - cropped to 774
|
|
247
|
+
* gematriya(25) // 'כ״ה'
|
|
248
|
+
* gematriya(60) // 'ס׳'
|
|
249
|
+
* gematriya(3761) // 'ג׳תשס״א'
|
|
250
|
+
* gematriya(1123) // 'א׳קכ״ג'
|
|
251
|
+
*/
|
|
252
|
+
declare function gematriya(num: any): string;
|
|
253
|
+
declare function gematriya(num: any): string;
|
|
254
|
+
declare function gematriya(num: any): string;
|
|
255
|
+
declare function gematriya(num: any): string;
|
|
256
|
+
/**
|
|
257
|
+
* Converts a string of Hebrew letters to a numerical value.
|
|
258
|
+
*
|
|
259
|
+
* Only considers the value of Hebrew letters `א` through `ת`.
|
|
260
|
+
* Ignores final Hebrew letters such as `ך` (kaf sofit) or `ם` (mem sofit)
|
|
261
|
+
* and vowels (nekudot).
|
|
262
|
+
*/
|
|
263
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
264
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
265
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
266
|
+
declare function gematriyaStrToNum(str: any): number;
|
|
267
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
268
|
+
/**
|
|
269
|
+
* Formats a number with leading zeros so the resulting string is 4 digits long.
|
|
270
|
+
* Similar to `string.padStart(4, '0')` but will also format
|
|
271
|
+
* negative numbers similar to how the JavaScript date formats
|
|
272
|
+
* negative year numbers (e.g. `-37` is formatted as `-000037`).
|
|
273
|
+
*/
|
|
274
|
+
declare function pad4(num: any): string;
|
|
275
|
+
declare function pad4(num: any): any;
|
|
276
|
+
/**
|
|
277
|
+
* Formats a number with leading zeros so the resulting string is 2 digits long.
|
|
278
|
+
* Similar to `string.padStart(2, '0')`.
|
|
279
|
+
*/
|
|
280
|
+
declare function pad2(num: any): string;
|
|
281
|
+
declare function pad2(num: any): string;
|
|
282
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
283
|
+
/**
|
|
284
|
+
* Returns YYYY-MM-DD in the local timezone
|
|
285
|
+
*/
|
|
286
|
+
declare function isoDateString(dt: any): string;
|
|
287
|
+
declare function isoDateString(dt: any): string;
|
|
288
|
+
/** @private */
|
|
289
|
+
declare function getEnOrdinal(n: any): string;
|
|
290
|
+
declare function getEnOrdinal(n: any): string;
|
|
291
|
+
declare function getEnOrdinal(n: any): string;
|
|
292
|
+
declare function getEnOrdinal(n: any): string;
|
|
293
|
+
/** @private */
|
|
294
|
+
declare function checkLocale(locale: any): any;
|
|
295
|
+
declare function checkLocale(locale: any): any;
|
|
296
|
+
declare function checkLocale(locale: any): any;
|
|
297
|
+
declare function checkLocale(locale: any): any;
|
|
298
|
+
/** @private */
|
|
299
|
+
declare function getExistingLocale(locale: any): any;
|
|
300
|
+
declare function getExistingLocale(locale: any): any;
|
|
301
|
+
declare function getExistingLocale(locale: any): any;
|
|
302
|
+
declare function getExistingLocale(locale: any): any;
|
|
303
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
304
|
+
declare function mod(x: any, y: any): number;
|
|
305
|
+
declare function mod(x: any, y: any): number;
|
|
306
|
+
declare function mod(x: any, y: any): number;
|
|
307
|
+
declare function mod(x: any, y: any): number;
|
|
308
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
309
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
310
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
311
|
+
declare function isSimpleHebrewDate(obj: any): boolean;
|
|
312
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
313
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
314
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
315
|
+
declare function standardizeUnits(units: any): "year" | "month" | "day" | "week";
|
|
316
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
317
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
318
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
319
|
+
declare function getDayOfTranslation(locale: any): string;
|
|
320
|
+
/**
|
|
321
|
+
* Sets the day of the month of the date. Returns the object it was called upon
|
|
322
|
+
* @private
|
|
323
|
+
* @param month A number, or Hebrew month name string
|
|
324
|
+
*/
|
|
325
|
+
declare function setMonth(hd: any, month: any): any;
|
|
326
|
+
declare function setMonth(hd: any, month: any): any;
|
|
327
|
+
declare function setMonth(hd: any, month: any): any;
|
|
328
|
+
declare function setMonth(hd: any, month: any): any;
|
|
329
|
+
declare function setDate(hd: any, date: any): any;
|
|
330
|
+
declare function setDate(hd: any, date: any): any;
|
|
331
|
+
declare function setDate(hd: any, date: any): any;
|
|
332
|
+
declare function setDate(hd: any, date: any): any;
|
|
333
|
+
declare function fix(hd: any): void;
|
|
334
|
+
declare function fix(hd: any): void;
|
|
335
|
+
declare function fix(hd: any): void;
|
|
336
|
+
declare function fix(hd: any): void;
|
|
337
|
+
declare function fixDate(hd: any): void;
|
|
338
|
+
declare function fixDate(hd: any): void;
|
|
339
|
+
declare function fixDate(hd: any): void;
|
|
340
|
+
declare function fixDate(hd: any): void;
|
|
341
|
+
declare function fixMonth(hd: any): void;
|
|
342
|
+
declare function fixMonth(hd: any): void;
|
|
343
|
+
declare function fixMonth(hd: any): void;
|
|
344
|
+
declare function fixMonth(hd: any): void;
|
|
345
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
346
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
347
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
348
|
+
declare function onOrBefore(day: any, t: any, offset: any): HDate;
|
|
349
|
+
/**
|
|
350
|
+
* Yom HaShoah first observed in 1951.
|
|
351
|
+
* When the actual date of Yom Hashoah falls on a Friday, the
|
|
352
|
+
* state of Israel observes Yom Hashoah on the preceding
|
|
353
|
+
* Thursday. When it falls on a Sunday, Yom Hashoah is observed
|
|
354
|
+
* on the following Monday.
|
|
355
|
+
* http://www.ushmm.org/remembrance/dor/calendar/
|
|
356
|
+
* @private
|
|
357
|
+
* @param year
|
|
358
|
+
*/
|
|
359
|
+
declare function dateYomHaShoah(year: any): HDate | null;
|
|
360
|
+
declare function dateYomHaShoah(year: any): HDate | null;
|
|
361
|
+
/**
|
|
362
|
+
* Yom HaAtzma'ut only celebrated after 1948
|
|
363
|
+
* @private
|
|
364
|
+
* @param year
|
|
365
|
+
*/
|
|
366
|
+
declare function dateYomHaZikaron(year: any): HDate | null;
|
|
367
|
+
declare function dateYomHaZikaron(year: any): HDate | null;
|
|
368
|
+
declare function dateYomHaZikaron(year: any): HDate | null;
|
|
369
|
+
declare function yearType(hyear: any): 2 | 0 | 1;
|
|
370
|
+
declare function yearType(hyear: any): 2 | 0 | 1;
|
|
371
|
+
declare function yearType(hyear: any): 2 | 0 | 1;
|
|
372
|
+
/**
|
|
373
|
+
* @private
|
|
374
|
+
* @param id a negative number
|
|
375
|
+
*/
|
|
376
|
+
declare function isValidDouble(id: any): boolean;
|
|
377
|
+
declare function isValidDouble(id: any): boolean;
|
|
378
|
+
declare function isValidDouble(id: any): boolean;
|
|
379
|
+
/**
|
|
380
|
+
* parsha doubler/undoubler
|
|
381
|
+
* @private
|
|
382
|
+
* @param p
|
|
383
|
+
*/
|
|
384
|
+
declare function D(p: any): number;
|
|
385
|
+
declare function D(p: any): number;
|
|
386
|
+
declare function D(p: any): number;
|
|
387
|
+
/**
|
|
388
|
+
* Returns an array from start to end
|
|
389
|
+
* @private
|
|
390
|
+
* @param start beginning number, inclusive
|
|
391
|
+
* @param stop ending number, inclusive
|
|
392
|
+
*/
|
|
393
|
+
declare function range(start: any, stop: any): any[];
|
|
394
|
+
declare function range(start: any, stop: any): any[];
|
|
395
|
+
declare function range(start: any, stop: any): any[];
|
|
396
|
+
declare function range(start: any, end: any): any[];
|
|
397
|
+
/**
|
|
398
|
+
* Convenience function to create an instance of `Sedra` or reuse a previously
|
|
399
|
+
* created and cached instance.
|
|
400
|
+
* @param hyear
|
|
401
|
+
* @param il
|
|
402
|
+
*/
|
|
403
|
+
declare function getSedra(hyear: any, il: any): any;
|
|
404
|
+
declare function getSedra(hyear: any, il: any): any;
|
|
405
|
+
declare function getSedra(hyear: any, il: any): any;
|
|
406
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
407
|
+
/**
|
|
408
|
+
* Returns an array of Events on this date (or `undefined` if no events)
|
|
409
|
+
* @param date Hebrew Date, Gregorian date, or absolute R.D. day number
|
|
410
|
+
* @param [il] use the Israeli schedule for holidays
|
|
411
|
+
*/
|
|
412
|
+
declare function getHolidaysOnDate(date: any, il?: any): any;
|
|
413
|
+
/**
|
|
414
|
+
* Lower-level holidays interface, which returns a `Map` of `Event`s indexed by
|
|
415
|
+
* `HDate.toString()`. These events must filtered especially for `flags.IL_ONLY`
|
|
416
|
+
* or `flags.CHUL_ONLY` depending on Israel vs. Diaspora holiday scheme.
|
|
417
|
+
* @private
|
|
418
|
+
*/
|
|
419
|
+
declare function getHolidaysForYear_(year: any): any;
|
|
420
|
+
declare function getHolidaysForYear_(year: any): any;
|
|
421
|
+
/**
|
|
422
|
+
* Birkat Hachamah appears only once every 28 years.
|
|
423
|
+
* Although almost always in Nisan, it can occur in Adar II.
|
|
424
|
+
* - 27 Adar II 5461 (Gregorian year 1701)
|
|
425
|
+
* - 29 Adar II 5993 (Gregorian year 2233)
|
|
426
|
+
*
|
|
427
|
+
* Due to drift, this will eventually slip into Iyyar
|
|
428
|
+
* - 2 Iyyar 7141 (Gregorian year 3381)
|
|
429
|
+
* @private
|
|
430
|
+
*/
|
|
431
|
+
declare function getBirkatHaChama(year: any): number;
|
|
432
|
+
declare function getBirkatHaChama(year: any): number;
|
|
433
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
434
|
+
/** @private */
|
|
435
|
+
declare const lengths: number[];
|
|
436
|
+
/** @private */
|
|
437
|
+
declare const monthLengths: number[][];
|
|
438
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
439
|
+
/**
|
|
440
|
+
* Gregorian date helper functions
|
|
441
|
+
*/
|
|
442
|
+
declare var greg: any;
|
|
443
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
444
|
+
declare const NISAN$2: 1;
|
|
445
|
+
declare const IYYAR$1: 2;
|
|
446
|
+
declare const SIVAN: 3;
|
|
447
|
+
declare const TAMUZ$1: 4;
|
|
448
|
+
declare const AV$1: 5;
|
|
449
|
+
declare const ELUL: 6;
|
|
450
|
+
declare const TISHREI$1: 7;
|
|
451
|
+
declare const CHESHVAN: 8;
|
|
452
|
+
declare const KISLEV$1: 9;
|
|
453
|
+
declare const TEVET$1: 10;
|
|
454
|
+
declare const SHVAT: 11;
|
|
455
|
+
declare const ADAR_I$1: 12;
|
|
456
|
+
declare const ADAR_II$1: 13;
|
|
457
|
+
/**
|
|
458
|
+
* Hebrew months of the year (NISAN=1, TISHREI=7)
|
|
459
|
+
*/
|
|
460
|
+
type months = number;
|
|
461
|
+
declare namespace months {
|
|
462
|
+
export { NISAN$2 as NISAN };
|
|
463
|
+
export { IYYAR$1 as IYYAR };
|
|
464
|
+
export { SIVAN };
|
|
465
|
+
export { TAMUZ$1 as TAMUZ };
|
|
466
|
+
export { AV$1 as AV };
|
|
467
|
+
export { ELUL };
|
|
468
|
+
export { TISHREI$1 as TISHREI };
|
|
469
|
+
export { CHESHVAN };
|
|
470
|
+
export { KISLEV$1 as KISLEV };
|
|
471
|
+
export { TEVET$1 as TEVET };
|
|
472
|
+
export { SHVAT };
|
|
473
|
+
export { ADAR_I$1 as ADAR_I };
|
|
474
|
+
export { ADAR_II$1 as ADAR_II };
|
|
475
|
+
}
|
|
476
|
+
declare const NISAN_STR: "Nisan";
|
|
477
|
+
declare const monthNames0: string[];
|
|
478
|
+
declare const monthNames: string[][];
|
|
479
|
+
declare const edCache: Map<any, any>;
|
|
480
|
+
declare const EPOCH: -1373428;
|
|
481
|
+
declare const AVG_HEBYEAR_DAYS: 365.24682220597794;
|
|
482
|
+
/*! @hebcal/hdate v0.21.1, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
483
|
+
declare const GERESH: "\u05F3";
|
|
484
|
+
declare const GERSHAYIM: "\u05F4";
|
|
485
|
+
declare namespace heb2num {
|
|
486
|
+
let א: number;
|
|
487
|
+
let ב: number;
|
|
488
|
+
let ג: number;
|
|
489
|
+
let ד: number;
|
|
490
|
+
let ה: number;
|
|
491
|
+
let ו: number;
|
|
492
|
+
let ז: number;
|
|
493
|
+
let ח: number;
|
|
494
|
+
let ט: number;
|
|
495
|
+
let י: number;
|
|
496
|
+
let כ: number;
|
|
497
|
+
let ל: number;
|
|
498
|
+
let מ: number;
|
|
499
|
+
let נ: number;
|
|
500
|
+
let ס: number;
|
|
501
|
+
let ע: number;
|
|
502
|
+
let פ: number;
|
|
503
|
+
let צ: number;
|
|
504
|
+
let ק: number;
|
|
505
|
+
let ר: number;
|
|
506
|
+
let ש: number;
|
|
507
|
+
let ת: number;
|
|
508
|
+
}
|
|
509
|
+
declare const num2heb: {};
|
|
510
|
+
declare namespace poAshkenazi$1 {
|
|
511
|
+
let headers: {
|
|
512
|
+
"plural-forms": string;
|
|
513
|
+
language: string;
|
|
514
|
+
};
|
|
515
|
+
let contexts: {
|
|
516
|
+
"": {
|
|
517
|
+
Tevet: string[];
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
declare namespace poHe$1 {
|
|
522
|
+
let headers_1: {
|
|
523
|
+
"plural-forms": string;
|
|
524
|
+
language: string;
|
|
525
|
+
};
|
|
526
|
+
export { headers_1 as headers };
|
|
527
|
+
let contexts_1: {
|
|
528
|
+
"": {
|
|
529
|
+
Adar: string[];
|
|
530
|
+
"Adar I": string[];
|
|
531
|
+
"Adar II": string[];
|
|
532
|
+
Av: string[];
|
|
533
|
+
Cheshvan: string[];
|
|
534
|
+
Elul: string[];
|
|
535
|
+
Iyyar: string[];
|
|
536
|
+
Kislev: string[];
|
|
537
|
+
Nisan: string[];
|
|
538
|
+
"Sh'vat": string[];
|
|
539
|
+
Sivan: string[];
|
|
540
|
+
Tamuz: string[];
|
|
541
|
+
Tevet: string[];
|
|
542
|
+
Tishrei: string[];
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
export { contexts_1 as contexts };
|
|
546
|
+
}
|
|
547
|
+
declare namespace noopLocale {
|
|
548
|
+
let headers_2: {
|
|
549
|
+
'plural-forms': string;
|
|
550
|
+
};
|
|
551
|
+
export { headers_2 as headers };
|
|
552
|
+
let contexts_2: {
|
|
553
|
+
'': {};
|
|
554
|
+
};
|
|
555
|
+
export { contexts_2 as contexts };
|
|
556
|
+
}
|
|
557
|
+
declare const alias: {
|
|
558
|
+
h: string;
|
|
559
|
+
a: string;
|
|
560
|
+
s: string;
|
|
561
|
+
'': string;
|
|
562
|
+
};
|
|
563
|
+
/** @private */
|
|
564
|
+
declare const locales: Map<any, any>;
|
|
565
|
+
/**
|
|
566
|
+
* A locale in Hebcal is used for translations/transliterations of
|
|
567
|
+
* holidays. `@hebcal/hdate` supports four locales by default
|
|
568
|
+
* * `en` - default, Sephardic transliterations (e.g. "Shabbat")
|
|
569
|
+
* * `ashkenazi` - Ashkenazi transliterations (e.g. "Shabbos")
|
|
570
|
+
* * `he` - Hebrew (e.g. "שַׁבָּת")
|
|
571
|
+
* * `he-x-NoNikud` - Hebrew without nikud (e.g. "שבת")
|
|
572
|
+
*/
|
|
573
|
+
declare class Locale {
|
|
574
|
+
/**
|
|
575
|
+
* Returns translation only if `locale` offers a non-empty translation for `id`.
|
|
576
|
+
* Otherwise, returns `undefined`.
|
|
577
|
+
* @param id Message ID to translate
|
|
578
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
|
|
579
|
+
*/
|
|
580
|
+
static lookupTranslation(id: any, locale?: any): any;
|
|
581
|
+
/**
|
|
582
|
+
* By default, if no translation was found, returns `id`.
|
|
583
|
+
* @param id Message ID to translate
|
|
584
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
|
|
585
|
+
*/
|
|
586
|
+
static gettext(id: any, locale?: any): any;
|
|
587
|
+
/**
|
|
588
|
+
* Register locale translations.
|
|
589
|
+
* @param locale Locale name (i.e.: `'he'`, `'fr'`)
|
|
590
|
+
* @param data parsed data from a `.po` file.
|
|
591
|
+
*/
|
|
592
|
+
static addLocale(locale: any, data: any): void;
|
|
593
|
+
/**
|
|
594
|
+
* Adds a translation to `locale`, replacing any previous translation.
|
|
595
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
596
|
+
* @param id Message ID to translate
|
|
597
|
+
* @param translation Translation text
|
|
598
|
+
*/
|
|
599
|
+
static addTranslation(locale: any, id: any, translation: any): void;
|
|
600
|
+
/**
|
|
601
|
+
* Adds multiple translations to `locale`, replacing any previous translations.
|
|
602
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
603
|
+
* @param data parsed data from a `.po` file.
|
|
604
|
+
*/
|
|
605
|
+
static addTranslations(locale: any, data: any): void;
|
|
606
|
+
/**
|
|
607
|
+
* Returns the names of registered locales
|
|
608
|
+
*/
|
|
609
|
+
static getLocaleNames(): any[];
|
|
610
|
+
/**
|
|
611
|
+
* Checks whether a locale has been registered
|
|
612
|
+
* @param locale Locale name (i.e: `'he'`, `'fr'`).
|
|
613
|
+
*/
|
|
614
|
+
static hasLocale(locale: any): boolean;
|
|
615
|
+
/**
|
|
616
|
+
* Renders a number in ordinal, such as 1st, 2nd or 3rd
|
|
617
|
+
* @param [locale] Optional locale name (i.e: `'he'`, `'fr'`). Defaults to no-op locale.
|
|
618
|
+
*/
|
|
619
|
+
static ordinal(n: any, locale?: any): string;
|
|
620
|
+
/**
|
|
621
|
+
* Removes nekudot from Hebrew string
|
|
622
|
+
*/
|
|
623
|
+
static hebrewStripNikkud(str: any): any;
|
|
624
|
+
/**
|
|
625
|
+
* Makes a copy of entire Hebrew locale with no niqqud
|
|
626
|
+
*/
|
|
627
|
+
static copyLocaleNoNikud(data: any): {
|
|
628
|
+
headers: any;
|
|
629
|
+
contexts: {
|
|
630
|
+
'': {};
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
declare namespace poHeNoNikud$1 {
|
|
635
|
+
let headers_3: any;
|
|
636
|
+
export { headers_3 as headers };
|
|
637
|
+
let contexts_3: {
|
|
638
|
+
'': {};
|
|
639
|
+
};
|
|
640
|
+
export { contexts_3 as contexts };
|
|
641
|
+
}
|
|
642
|
+
declare const UNITS_DAY: "day";
|
|
643
|
+
declare const UNITS_WEEK: "week";
|
|
644
|
+
declare const UNITS_MONTH: "month";
|
|
645
|
+
declare const UNITS_YEAR: "year";
|
|
646
|
+
/**
|
|
647
|
+
* A `HDate` represents a Hebrew calendar date.
|
|
648
|
+
*
|
|
649
|
+
* An instance of this class encapsulates a date in the Hebrew calendar system.
|
|
650
|
+
* It consists of a year, month, and day, without any associated time or location data.
|
|
651
|
+
* The Hebrew calendar is a lunisolar calendar, meaning it is based on both lunar and solar cycles.
|
|
652
|
+
*
|
|
653
|
+
* A Hebrew date internally stores three numbers:
|
|
654
|
+
* - year: The Hebrew year (1-9999). Counted from the traditional Hebrew date of creation (3761 BCE in the Gregorian calendar)
|
|
655
|
+
* - month: The Hebrew month (1-13). Month 1 is Nisan, month 7 is Tishrei. There are 12 months in a regular year and 13 months in a leap year.
|
|
656
|
+
* - day: The day of the month (1-30)
|
|
657
|
+
*
|
|
658
|
+
* This class uses Rata Die to convert between the Hebrew and Gregorian calendars.
|
|
659
|
+
*
|
|
660
|
+
* To calculate times of day, use `Zmanim` class from `@hebcal/core`
|
|
661
|
+
* @see {@link https://en.wikipedia.org/wiki/Rata_Die | Rata Die}
|
|
662
|
+
* @see {@link https://hebcal.github.io/api/core/classes/Zmanim.html | Zmanim}
|
|
663
|
+
*/
|
|
664
|
+
declare class HDate {
|
|
665
|
+
/**
|
|
666
|
+
* Converts Hebrew date to R.D. (Rata Die) fixed days.
|
|
667
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 on the Gregorian
|
|
668
|
+
* Calendar.
|
|
669
|
+
* @param year Hebrew year
|
|
670
|
+
* @param month Hebrew month (1=NISAN, 7=TISHREI)
|
|
671
|
+
* @param day Hebrew date (1-30)
|
|
672
|
+
* @example
|
|
673
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
674
|
+
* HDate.hebrew2abs(5769, months.CHESHVAN, 15); // 733359
|
|
675
|
+
*/
|
|
676
|
+
static hebrew2abs(year: any, month: any, day: any): number;
|
|
677
|
+
/**
|
|
678
|
+
* Returns true if Hebrew year is a leap year
|
|
679
|
+
* @param year Hebrew year
|
|
680
|
+
* @example
|
|
681
|
+
* HDate.isLeapYear(5783); // false
|
|
682
|
+
* HDate.isLeapYear(5784); // true
|
|
683
|
+
*/
|
|
684
|
+
static isLeapYear(year: any): boolean;
|
|
685
|
+
/**
|
|
686
|
+
* Number of months in this Hebrew year (either 12 or 13 depending on leap year)
|
|
687
|
+
* @param year Hebrew year
|
|
688
|
+
* @example
|
|
689
|
+
* HDate.monthsInYear(5783); // 12
|
|
690
|
+
* HDate.monthsInYear(5784); // 13
|
|
691
|
+
*/
|
|
692
|
+
static monthsInYear(year: any): number;
|
|
693
|
+
/**
|
|
694
|
+
* Number of days in Hebrew month in a given year (29 or 30)
|
|
695
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
696
|
+
* @param year Hebrew year
|
|
697
|
+
* @example
|
|
698
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
699
|
+
* HDate.daysInMonth(months.CHESHVAN, 5769); // 29
|
|
700
|
+
*/
|
|
701
|
+
static daysInMonth(month: any, year: any): 30 | 29;
|
|
702
|
+
/**
|
|
703
|
+
* Returns a transliterated string name of Hebrew month in year,
|
|
704
|
+
* for example 'Elul' or 'Cheshvan'.
|
|
705
|
+
* @param month Hebrew month (e.g. months.TISHREI)
|
|
706
|
+
* @param year Hebrew year
|
|
707
|
+
* @example
|
|
708
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
709
|
+
* HDate.getMonthName(months.CHESHVAN, 5769); // 'Cheshvan'
|
|
710
|
+
*/
|
|
711
|
+
static getMonthName(month: any, year: any): string;
|
|
712
|
+
/**
|
|
713
|
+
* Returns the Hebrew month number (NISAN=1, TISHREI=7)
|
|
714
|
+
* @param month A number, or Hebrew month name string
|
|
715
|
+
* @example
|
|
716
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
717
|
+
* HDate.monthNum(months.CHESHVAN); // 8
|
|
718
|
+
* HDate.monthNum('Cheshvan'); // 8
|
|
719
|
+
* HDate.monthNum('חשון'); // 8
|
|
720
|
+
*/
|
|
721
|
+
static monthNum(month: any): number;
|
|
722
|
+
/**
|
|
723
|
+
* Number of days in the Hebrew year.
|
|
724
|
+
* Regular years can have 353, 354, or 355 days.
|
|
725
|
+
* Leap years can have 383, 384, or 385 days.
|
|
726
|
+
* @param year Hebrew year
|
|
727
|
+
* @example
|
|
728
|
+
* HDate.daysInYear(5783); // 355
|
|
729
|
+
* HDate.daysInYear(5784); // 383
|
|
730
|
+
*/
|
|
731
|
+
static daysInYear(year: any): number;
|
|
732
|
+
/**
|
|
733
|
+
* true if Cheshvan is long in Hebrew year
|
|
734
|
+
* @param year Hebrew year
|
|
735
|
+
* @example
|
|
736
|
+
* HDate.longCheshvan(5783); // true
|
|
737
|
+
* HDate.longCheshvan(5784); // false
|
|
738
|
+
*/
|
|
739
|
+
static longCheshvan(year: any): boolean;
|
|
740
|
+
/**
|
|
741
|
+
* true if Kislev is short in Hebrew year
|
|
742
|
+
* @param year Hebrew year
|
|
743
|
+
* @example
|
|
744
|
+
* HDate.shortKislev(5783); // false
|
|
745
|
+
* HDate.shortKislev(5784); // true
|
|
746
|
+
*/
|
|
747
|
+
static shortKislev(year: any): boolean;
|
|
748
|
+
/**
|
|
749
|
+
* Converts Hebrew month string name to numeric
|
|
750
|
+
* @example
|
|
751
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
752
|
+
* HDate.monthFromName(months.CHESHVAN); // 8
|
|
753
|
+
* HDate.monthFromName('Cheshvan'); // 8
|
|
754
|
+
* HDate.monthFromName('חשון'); // 8
|
|
755
|
+
*/
|
|
756
|
+
static monthFromName(monthName: any): number;
|
|
757
|
+
/**
|
|
758
|
+
* Convenience function for determining the R.D. date
|
|
759
|
+
* near a specified R.D. date, corresponding to the specified day of week.
|
|
760
|
+
*
|
|
761
|
+
* Note: Applying this function to d+6 gives us the `dayOfWeek` on or after an
|
|
762
|
+
* absolute day d. Similarly, applying it to d+3 gives the `dayOfWeek` nearest to
|
|
763
|
+
* absolute date d, applying it to d-1 gives the `dayOfWeek` previous to absolute
|
|
764
|
+
* date d, and applying it to d+7 gives the `dayOfWeek` following absolute date d.
|
|
765
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
766
|
+
*/
|
|
767
|
+
static dayOnOrBefore(dayOfWeek: any, absdate: any): number;
|
|
768
|
+
/**
|
|
769
|
+
* Tests if the object is an instance of `HDate`
|
|
770
|
+
* @example
|
|
771
|
+
* HDate.isHDate(new HDate()); // true
|
|
772
|
+
* HDate.isHDate(new Date()); // false
|
|
773
|
+
* HDate.isHDate(null); // false
|
|
774
|
+
* HDate.isHDate(12345); // false
|
|
775
|
+
* HDate.isHDate('15 Cheshvan 5769'); // false
|
|
776
|
+
*/
|
|
777
|
+
static isHDate(obj: any): boolean;
|
|
778
|
+
/**
|
|
779
|
+
* Construct a new instance of `HDate` from a Gematriya-formatted string
|
|
780
|
+
* @example
|
|
781
|
+
* HDate.fromGematriyaString('כ״ז בְּתַמּוּז תשפ״ג') // 27 Tamuz 5783
|
|
782
|
+
* HDate.fromGematriyaString('כ׳ סיון תש״ד') // 20 Sivan 5704
|
|
783
|
+
* HDate.fromGematriyaString('ה׳ אִיָיר תש״ח') // 5 Iyyar 5708
|
|
784
|
+
*/
|
|
785
|
+
static fromGematriyaString(str: any, currentThousands?: number): HDate;
|
|
786
|
+
/**
|
|
787
|
+
* Create a Hebrew date. There are 3 basic forms for the `HDate()` constructor.
|
|
788
|
+
*
|
|
789
|
+
* 1. No parameters - represents the current Hebrew date at time of instantiation
|
|
790
|
+
* 2. One parameter
|
|
791
|
+
* * `Date` - represents the Hebrew date corresponding to the Gregorian date using
|
|
792
|
+
* local time. Hours, minutes, seconds and milliseconds are ignored.
|
|
793
|
+
* * `HDate` - clones a copy of the given Hebrew date
|
|
794
|
+
* * `number` - Converts absolute R.D. days to Hebrew date.
|
|
795
|
+
* R.D. 1 == the imaginary date January 1, 1 (Gregorian)
|
|
796
|
+
* 3. Three parameters: Hebrew day, Hebrew month, Hebrew year. Hebrew day should
|
|
797
|
+
* be a number between 1-30, Hebrew month can be a number or string, and
|
|
798
|
+
* Hebrew year is always a number.
|
|
799
|
+
* @example
|
|
800
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
801
|
+
*
|
|
802
|
+
* const hd1 = new HDate();
|
|
803
|
+
* const hd2 = new HDate(new Date(2008, 10, 13));
|
|
804
|
+
* const hd3 = new HDate(15, 'Cheshvan', 5769);
|
|
805
|
+
* const hd4 = new HDate(15, months.CHESHVAN, 5769);
|
|
806
|
+
* const hd5 = new HDate(733359); // ==> 15 Cheshvan 5769
|
|
807
|
+
* const monthName = 'אייר';
|
|
808
|
+
* const hd6 = new HDate(5, monthName, 5773);
|
|
809
|
+
* @param [day] - Day of month (1-30) if a `number`.
|
|
810
|
+
* If a `Date` is specified, represents the Hebrew date corresponding to the
|
|
811
|
+
* Gregorian date using local time.
|
|
812
|
+
* If an `HDate` is specified, clones a copy of the given Hebrew date.
|
|
813
|
+
* @param [month] - Hebrew month of year (1=NISAN, 7=TISHREI)
|
|
814
|
+
* @param [year] - Hebrew year
|
|
815
|
+
*/
|
|
816
|
+
constructor(day?: any, month?: any, year?: any, ...args: any[]);
|
|
817
|
+
dd: any;
|
|
818
|
+
mm: any;
|
|
819
|
+
yy: any;
|
|
820
|
+
rd: number | undefined;
|
|
821
|
+
/**
|
|
822
|
+
* Returns the Hebrew year of this Hebrew date
|
|
823
|
+
* @returns an integer >= 1
|
|
824
|
+
* @example
|
|
825
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
826
|
+
* hd.getFullYear(); // 5769
|
|
827
|
+
*/
|
|
828
|
+
getFullYear(): any;
|
|
829
|
+
/**
|
|
830
|
+
* Returns `true` if this Hebrew date occurs during a Hebrew leap year
|
|
831
|
+
* @example
|
|
832
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
833
|
+
* hd.isLeapYear(); // false
|
|
834
|
+
*/
|
|
835
|
+
isLeapYear(): boolean;
|
|
836
|
+
/**
|
|
837
|
+
* Returns the Hebrew month (1=NISAN, 7=TISHREI) of this Hebrew date
|
|
838
|
+
* @returns an integer 1-13
|
|
839
|
+
* @example
|
|
840
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
841
|
+
* hd.getMonth(); // 8
|
|
842
|
+
*/
|
|
843
|
+
getMonth(): any;
|
|
844
|
+
/**
|
|
845
|
+
* The Tishrei-based month of this Hebrew date. 1 is Tishrei, 7 is Nisan, 13 is Elul in a leap year
|
|
846
|
+
* @returns an integer 1-13
|
|
847
|
+
* @example
|
|
848
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
849
|
+
* hd.getTishreiMonth(); // 2
|
|
850
|
+
*/
|
|
851
|
+
getTishreiMonth(): number;
|
|
852
|
+
/**
|
|
853
|
+
* Number of days in the month of this Hebrew date (29 or 30)
|
|
854
|
+
* @returns an integer 29-30
|
|
855
|
+
* @example
|
|
856
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
857
|
+
* hd.daysInMonth(); // 29
|
|
858
|
+
*/
|
|
859
|
+
daysInMonth(): 30 | 29;
|
|
860
|
+
/**
|
|
861
|
+
* Gets the day within the month (1-30)
|
|
862
|
+
* @returns an integer 1-30
|
|
863
|
+
* @example
|
|
864
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
865
|
+
* hd.getDate(); // 15
|
|
866
|
+
*/
|
|
867
|
+
getDate(): any;
|
|
868
|
+
/**
|
|
869
|
+
* Returns the day of the week for this Hebrew date,
|
|
870
|
+
* where 0 represents Sunday, 1 represents Monday, 6 represents Saturday.
|
|
871
|
+
*
|
|
872
|
+
* For the day of the month, see `getDate()`
|
|
873
|
+
* @returns an integer 0-6
|
|
874
|
+
* @example
|
|
875
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
876
|
+
* hd.getDate(); // 4
|
|
877
|
+
*/
|
|
878
|
+
getDay(): number;
|
|
879
|
+
/**
|
|
880
|
+
* Converts this Hebrew date to the corresponding Gregorian date.
|
|
881
|
+
*
|
|
882
|
+
* The returned `Date` object will be in the local (i.e. host system) time zone.
|
|
883
|
+
* Hours, minutes, seconds and milliseconds will all be zero.
|
|
884
|
+
*
|
|
885
|
+
* Note that this function returns the daytime portion of the date.
|
|
886
|
+
* For example, the 15th of Cheshvan 5769 began at sundown on
|
|
887
|
+
* 12 November 2008 and continues through 13 November 2008. This
|
|
888
|
+
* function would return only the date 13 November 2008.
|
|
889
|
+
* @example
|
|
890
|
+
* const hd = new HDate(15, 'Cheshvan', 5769);
|
|
891
|
+
* const date = hd.greg(); // 13 November 2008
|
|
892
|
+
* const year = date.getFullYear(); // 2008
|
|
893
|
+
* const monthNum = date.getMonth() + 1; // 11
|
|
894
|
+
* const day = date.getDate(); // 13
|
|
895
|
+
*/
|
|
896
|
+
greg(): Date;
|
|
897
|
+
/**
|
|
898
|
+
* Converts from Hebrew date representation to R.D. (Rata Die) fixed days.
|
|
899
|
+
* R.D. 1 is the imaginary date Monday, January 1, 1 (Gregorian).
|
|
900
|
+
* Note also that R.D. = Julian Date − 1,721,424.5
|
|
901
|
+
* @see {@link https://en.wikipedia.org/wiki/Rata_Die | Rata Die}
|
|
902
|
+
* @example
|
|
903
|
+
* const hd = new HDate(15, 'Cheshvan', 5769);
|
|
904
|
+
* hd.abs(); // 733359
|
|
905
|
+
*/
|
|
906
|
+
abs(): number;
|
|
907
|
+
/**
|
|
908
|
+
* Returns a transliterated Hebrew month name, e.g. `'Elul'` or `'Cheshvan'`.
|
|
909
|
+
* @example
|
|
910
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
911
|
+
* hd.getMonthName(); // 'Cheshvan'
|
|
912
|
+
*/
|
|
913
|
+
getMonthName(): string;
|
|
914
|
+
/**
|
|
915
|
+
* Renders this Hebrew date as a translated or transliterated string,
|
|
916
|
+
* including ordinal e.g. `'15th of Cheshvan, 5769'`.
|
|
917
|
+
* @example
|
|
918
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
919
|
+
*
|
|
920
|
+
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
921
|
+
* console.log(hd.render('en')); // '15th of Cheshvan, 5769'
|
|
922
|
+
* console.log(hd.render('he')); // '15 חֶשְׁוָן, 5769'
|
|
923
|
+
* console.log(hd.render('en', false)); // '15th of Cheshvan'
|
|
924
|
+
* console.log(hd.render('he', false)); // '15 חֶשְׁוָן'
|
|
925
|
+
* @param [locale] Optional locale name (defaults to active locale).
|
|
926
|
+
* @param [showYear=true] Display year (defaults to true).
|
|
927
|
+
* @see {@link Locale}
|
|
928
|
+
*/
|
|
929
|
+
render(locale?: any, showYear?: boolean | undefined): string;
|
|
930
|
+
/**
|
|
931
|
+
* Renders this Hebrew date in Hebrew gematriya, regardless of locale.
|
|
932
|
+
* @param suppressNikud - suppress nekudot (default false)
|
|
933
|
+
* @param suppressYear - suppress Hebrew year (default false)
|
|
934
|
+
* @example
|
|
935
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
936
|
+
* const hd = new HDate(15, months.CHESHVAN, 5769);
|
|
937
|
+
* hd.renderGematriya(); // 'ט״ו חֶשְׁוָן תשס״ט'
|
|
938
|
+
* hd.renderGematriya(true); // 'ט״ו חשון תשס״ט'
|
|
939
|
+
* hd.renderGematriya(false, true); // 'ט״ו חֶשְׁוָן'
|
|
940
|
+
*/
|
|
941
|
+
renderGematriya(suppressNikud?: boolean, suppressYear?: boolean): string;
|
|
942
|
+
/**
|
|
943
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
944
|
+
* **before** this Hebrew date
|
|
945
|
+
* @example
|
|
946
|
+
* new HDate(new Date('Wednesday February 19, 2014')).before(6).greg() // Sat Feb 15 2014
|
|
947
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
948
|
+
*/
|
|
949
|
+
before(dayOfWeek: any): HDate;
|
|
950
|
+
/**
|
|
951
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
952
|
+
* **on or before** this Hebrew date
|
|
953
|
+
* @example
|
|
954
|
+
* new HDate(new Date('Wednesday February 19, 2014')).onOrBefore(6).greg() // Sat Feb 15 2014
|
|
955
|
+
* new HDate(new Date('Saturday February 22, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
|
|
956
|
+
* new HDate(new Date('Sunday February 23, 2014')).onOrBefore(6).greg() // Sat Feb 22 2014
|
|
957
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
958
|
+
*/
|
|
959
|
+
onOrBefore(dayOfWeek: any): HDate;
|
|
960
|
+
/**
|
|
961
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
962
|
+
* **nearest** to this Hebrew date
|
|
963
|
+
* @example
|
|
964
|
+
* new HDate(new Date('Wednesday February 19, 2014')).nearest(6).greg() // Sat Feb 22 2014
|
|
965
|
+
* new HDate(new Date('Tuesday February 18, 2014')).nearest(6).greg() // Sat Feb 15 2014
|
|
966
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
967
|
+
*/
|
|
968
|
+
nearest(dayOfWeek: any): HDate;
|
|
969
|
+
/**
|
|
970
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
971
|
+
* **on or after** this Hebrew date
|
|
972
|
+
* @example
|
|
973
|
+
* new HDate(new Date('Wednesday February 19, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
|
|
974
|
+
* new HDate(new Date('Saturday February 22, 2014')).onOrAfter(6).greg() // Sat Feb 22 2014
|
|
975
|
+
* new HDate(new Date('Sunday February 23, 2014')).onOrAfter(6).greg() // Sat Mar 01 2014
|
|
976
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
977
|
+
*/
|
|
978
|
+
onOrAfter(dayOfWeek: any): HDate;
|
|
979
|
+
/**
|
|
980
|
+
* Returns an `HDate` corresponding to the specified day of week
|
|
981
|
+
* **after** this Hebrew date
|
|
982
|
+
* @example
|
|
983
|
+
* new HDate(new Date('Wednesday February 19, 2014')).after(6).greg() // Sat Feb 22 2014
|
|
984
|
+
* new HDate(new Date('Saturday February 22, 2014')).after(6).greg() // Sat Mar 01 2014
|
|
985
|
+
* new HDate(new Date('Sunday February 23, 2014')).after(6).greg() // Sat Mar 01 2014
|
|
986
|
+
* @param dayOfWeek day of week: Sunday=0, Saturday=6
|
|
987
|
+
*/
|
|
988
|
+
after(dayOfWeek: any): HDate;
|
|
989
|
+
/**
|
|
990
|
+
* Returns the next Hebrew date
|
|
991
|
+
* @example
|
|
992
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
993
|
+
* hd.next(); // '16 Cheshvan 5769'
|
|
994
|
+
*/
|
|
995
|
+
next(): HDate;
|
|
996
|
+
/**
|
|
997
|
+
* Returns the previous Hebrew date
|
|
998
|
+
* @example
|
|
999
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
1000
|
+
* hd.prev(); // '14 Cheshvan 5769'
|
|
1001
|
+
*/
|
|
1002
|
+
prev(): HDate;
|
|
1003
|
+
/**
|
|
1004
|
+
* Returns a cloned `HDate` object with a specified amount of time added
|
|
1005
|
+
*
|
|
1006
|
+
* Units are case insensitive, and support plural and short forms.
|
|
1007
|
+
* Note, short forms are case sensitive.
|
|
1008
|
+
*
|
|
1009
|
+
* | Unit | Shorthand | Description
|
|
1010
|
+
* | --- | --- | --- |
|
|
1011
|
+
* | `day` | `d` | days |
|
|
1012
|
+
* | `week` | `w` | weeks |
|
|
1013
|
+
* | `month` | `M` | months |
|
|
1014
|
+
* | `year` | `y` | years |
|
|
1015
|
+
*/
|
|
1016
|
+
add(amount: any, units?: string): HDate;
|
|
1017
|
+
/**
|
|
1018
|
+
* Returns a cloned `HDate` object with a specified amount of time subracted
|
|
1019
|
+
*
|
|
1020
|
+
* Units are case insensitive, and support plural and short forms.
|
|
1021
|
+
* Note, short forms are case sensitive.
|
|
1022
|
+
*
|
|
1023
|
+
* | Unit | Shorthand | Description
|
|
1024
|
+
* | --- | --- | --- |
|
|
1025
|
+
* | `day` | `d` | days |
|
|
1026
|
+
* | `week` | `w` | weeks |
|
|
1027
|
+
* | `month` | `M` | months |
|
|
1028
|
+
* | `year` | `y` | years |
|
|
1029
|
+
* @example
|
|
1030
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
1031
|
+
*
|
|
1032
|
+
* const hd1 = new HDate(15, months.CHESHVAN, 5769);
|
|
1033
|
+
* const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
|
|
1034
|
+
* const hd3 = hd1.add(-3, 'M'); // 30 Av 5768
|
|
1035
|
+
*/
|
|
1036
|
+
subtract(amount: any, units?: string): HDate;
|
|
1037
|
+
/**
|
|
1038
|
+
* Returns the difference in days between the two given HDates.
|
|
1039
|
+
*
|
|
1040
|
+
* The result is positive if `this` date is comes chronologically
|
|
1041
|
+
* after the `other` date, and negative
|
|
1042
|
+
* if the order of the two dates is reversed.
|
|
1043
|
+
*
|
|
1044
|
+
* The result is zero if the two dates are identical.
|
|
1045
|
+
* @example
|
|
1046
|
+
* import {HDate, months} from '@hebcal/hdate';
|
|
1047
|
+
*
|
|
1048
|
+
* const hd1 = new HDate(25, months.KISLEV, 5770);
|
|
1049
|
+
* const hd2 = new HDate(15, months.CHESHVAN, 5769);
|
|
1050
|
+
* const days = hd1.deltaDays(hd2); // 394
|
|
1051
|
+
* @param other Hebrew date to compare
|
|
1052
|
+
*/
|
|
1053
|
+
deltaDays(other: any): number;
|
|
1054
|
+
/**
|
|
1055
|
+
* Compares this Hebrew date to another date, returning `true` if the dates match.
|
|
1056
|
+
* @param other Hebrew date to compare
|
|
1057
|
+
* @example
|
|
1058
|
+
* const hd1 = new HDate(new Date(2008, 10, 13));
|
|
1059
|
+
* const hd2 = new HDate(15, 'Cheshvan', 5769);
|
|
1060
|
+
* hd1.isSameDate(hd2); // true
|
|
1061
|
+
*/
|
|
1062
|
+
isSameDate(other: any): boolean;
|
|
1063
|
+
/**
|
|
1064
|
+
* Returns a string representation of this Hebrew date using English transliterations
|
|
1065
|
+
* @example
|
|
1066
|
+
* const hd = new HDate(new Date(2008, 10, 13)); // 15 Cheshvan 5769
|
|
1067
|
+
* hd.toString(); // '15 Cheshvan 5769'
|
|
1068
|
+
*/
|
|
1069
|
+
toString(): string;
|
|
1070
|
+
}
|
|
1071
|
+
declare class QuickLRU extends Map<any, any> {
|
|
1072
|
+
constructor(options?: {});
|
|
1073
|
+
get __oldCache(): Map<any, any>;
|
|
1074
|
+
get(key: any): any;
|
|
1075
|
+
set(key: any, value: any, { maxAge }?: {
|
|
1076
|
+
maxAge?: any;
|
|
1077
|
+
}): this;
|
|
1078
|
+
has(key: any): boolean;
|
|
1079
|
+
peek(key: any): any;
|
|
1080
|
+
expiresIn(key: any): number | undefined;
|
|
1081
|
+
delete(key: any): boolean;
|
|
1082
|
+
resize(newSize: any): void;
|
|
1083
|
+
evict(count?: number): void;
|
|
1084
|
+
keys(): Generator<any, void, unknown>;
|
|
1085
|
+
values(): Generator<any, void, unknown>;
|
|
1086
|
+
entriesDescending(): Generator<any[], void, unknown>;
|
|
1087
|
+
entriesAscending(): Generator<any[], void, unknown>;
|
|
1088
|
+
get maxSize(): any;
|
|
1089
|
+
get maxAge(): any;
|
|
1090
|
+
entries(): Generator<any[], void, unknown>;
|
|
1091
|
+
forEach(callbackFunction: any, thisArgument?: this): void;
|
|
1092
|
+
[Symbol.iterator](): Generator<any[], void, unknown>;
|
|
1093
|
+
#private;
|
|
1094
|
+
}
|
|
1095
|
+
declare namespace poAshkenazi {
|
|
1096
|
+
let headers_4: {
|
|
1097
|
+
"plural-forms": string;
|
|
1098
|
+
language: string;
|
|
1099
|
+
};
|
|
1100
|
+
export { headers_4 as headers };
|
|
1101
|
+
let contexts_4: {
|
|
1102
|
+
"": {
|
|
1103
|
+
Shabbat: string[];
|
|
1104
|
+
"Achrei Mot": string[];
|
|
1105
|
+
Bechukotai: string[];
|
|
1106
|
+
"Beha'alotcha": string[];
|
|
1107
|
+
Bereshit: string[];
|
|
1108
|
+
Chukat: string[];
|
|
1109
|
+
"Erev Shavuot": string[];
|
|
1110
|
+
"Erev Sukkot": string[];
|
|
1111
|
+
"Ki Tavo": string[];
|
|
1112
|
+
"Ki Teitzei": string[];
|
|
1113
|
+
"Ki Tisa": string[];
|
|
1114
|
+
Matot: string[];
|
|
1115
|
+
"Pesach Shabbat Chol ha-Moed": string[];
|
|
1116
|
+
"Purim Katan": string[];
|
|
1117
|
+
"Shabbat Chazon": string[];
|
|
1118
|
+
"Shabbat HaChodesh": string[];
|
|
1119
|
+
"Shabbat HaGadol": string[];
|
|
1120
|
+
"Shabbat Nachamu": string[];
|
|
1121
|
+
"Shabbat Parah": string[];
|
|
1122
|
+
"Shabbat Shekalim": string[];
|
|
1123
|
+
"Shabbat Shuva": string[];
|
|
1124
|
+
"Shabbat Zachor": string[];
|
|
1125
|
+
Shavuot: string[];
|
|
1126
|
+
"Shavuot I": string[];
|
|
1127
|
+
"Shavuot II": string[];
|
|
1128
|
+
Shemot: string[];
|
|
1129
|
+
"Shmini Atzeret": string[];
|
|
1130
|
+
"Simchat Torah": string[];
|
|
1131
|
+
Sukkot: string[];
|
|
1132
|
+
"Sukkot I": string[];
|
|
1133
|
+
"Sukkot II": string[];
|
|
1134
|
+
"Sukkot II (CH''M)": string[];
|
|
1135
|
+
"Sukkot III (CH''M)": string[];
|
|
1136
|
+
"Sukkot IV (CH''M)": string[];
|
|
1137
|
+
"Sukkot V (CH''M)": string[];
|
|
1138
|
+
"Sukkot VI (CH''M)": string[];
|
|
1139
|
+
"Sukkot VII (Hoshana Raba)": string[];
|
|
1140
|
+
"Sukkot Shabbat Chol ha-Moed": string[];
|
|
1141
|
+
"Ta'anit Bechorot": string[];
|
|
1142
|
+
"Ta'anit Esther": string[];
|
|
1143
|
+
Toldot: string[];
|
|
1144
|
+
Vaetchanan: string[];
|
|
1145
|
+
Yitro: string[];
|
|
1146
|
+
"Vezot Haberakhah": string[];
|
|
1147
|
+
Parashat: string[];
|
|
1148
|
+
"Leil Selichot": string[];
|
|
1149
|
+
"Shabbat Mevarchim Chodesh": string[];
|
|
1150
|
+
"Shabbat Shirah": string[];
|
|
1151
|
+
"Asara B'Tevet": string[];
|
|
1152
|
+
"Alot HaShachar": string[];
|
|
1153
|
+
"Kriat Shema, sof zeman": string[];
|
|
1154
|
+
"Tefilah, sof zeman": string[];
|
|
1155
|
+
"Kriat Shema, sof zeman (MGA)": string[];
|
|
1156
|
+
"Tefilah, sof zeman (MGA)": string[];
|
|
1157
|
+
"Chatzot HaLailah": string[];
|
|
1158
|
+
"Chatzot hayom": string[];
|
|
1159
|
+
"Tzeit HaKochavim": string[];
|
|
1160
|
+
"Birkat Hachamah": string[];
|
|
1161
|
+
"Shushan Purim Katan": string[];
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
export { contexts_4 as contexts };
|
|
1165
|
+
}
|
|
1166
|
+
declare namespace poHe {
|
|
1167
|
+
let headers_5: {
|
|
1168
|
+
"plural-forms": string;
|
|
1169
|
+
language: string;
|
|
1170
|
+
};
|
|
1171
|
+
export { headers_5 as headers };
|
|
1172
|
+
let contexts_5: {
|
|
1173
|
+
"": {
|
|
1174
|
+
Shabbat: string[];
|
|
1175
|
+
Parashat: string[];
|
|
1176
|
+
"Achrei Mot": string[];
|
|
1177
|
+
Balak: string[];
|
|
1178
|
+
Bamidbar: string[];
|
|
1179
|
+
Bechukotai: string[];
|
|
1180
|
+
"Beha'alotcha": string[];
|
|
1181
|
+
Behar: string[];
|
|
1182
|
+
Bereshit: string[];
|
|
1183
|
+
Beshalach: string[];
|
|
1184
|
+
Bo: string[];
|
|
1185
|
+
"Chayei Sara": string[];
|
|
1186
|
+
Chukat: string[];
|
|
1187
|
+
Devarim: string[];
|
|
1188
|
+
Eikev: string[];
|
|
1189
|
+
Emor: string[];
|
|
1190
|
+
"Ha'azinu": string[];
|
|
1191
|
+
Kedoshim: string[];
|
|
1192
|
+
"Ki Tavo": string[];
|
|
1193
|
+
"Ki Teitzei": string[];
|
|
1194
|
+
"Ki Tisa": string[];
|
|
1195
|
+
Korach: string[];
|
|
1196
|
+
"Lech-Lecha": string[];
|
|
1197
|
+
Masei: string[];
|
|
1198
|
+
Matot: string[];
|
|
1199
|
+
Metzora: string[];
|
|
1200
|
+
Miketz: string[];
|
|
1201
|
+
Mishpatim: string[];
|
|
1202
|
+
Nasso: string[];
|
|
1203
|
+
Nitzavim: string[];
|
|
1204
|
+
Noach: string[];
|
|
1205
|
+
Pekudei: string[];
|
|
1206
|
+
Pinchas: string[];
|
|
1207
|
+
"Re'eh": string[];
|
|
1208
|
+
"Sh'lach": string[];
|
|
1209
|
+
Shemot: string[];
|
|
1210
|
+
Shmini: string[];
|
|
1211
|
+
Shoftim: string[];
|
|
1212
|
+
Tazria: string[];
|
|
1213
|
+
Terumah: string[];
|
|
1214
|
+
Tetzaveh: string[];
|
|
1215
|
+
Toldot: string[];
|
|
1216
|
+
Tzav: string[];
|
|
1217
|
+
Vaera: string[];
|
|
1218
|
+
Vaetchanan: string[];
|
|
1219
|
+
Vayakhel: string[];
|
|
1220
|
+
Vayechi: string[];
|
|
1221
|
+
Vayeilech: string[];
|
|
1222
|
+
Vayera: string[];
|
|
1223
|
+
Vayeshev: string[];
|
|
1224
|
+
Vayetzei: string[];
|
|
1225
|
+
Vayigash: string[];
|
|
1226
|
+
Vayikra: string[];
|
|
1227
|
+
Vayishlach: string[];
|
|
1228
|
+
"Vezot Haberakhah": string[];
|
|
1229
|
+
Yitro: string[];
|
|
1230
|
+
"Asara B'Tevet": string[];
|
|
1231
|
+
"Candle lighting": string[];
|
|
1232
|
+
Chanukah: string[];
|
|
1233
|
+
"Chanukah: 1 Candle": string[];
|
|
1234
|
+
"Chanukah: 2 Candles": string[];
|
|
1235
|
+
"Chanukah: 3 Candles": string[];
|
|
1236
|
+
"Chanukah: 4 Candles": string[];
|
|
1237
|
+
"Chanukah: 5 Candles": string[];
|
|
1238
|
+
"Chanukah: 6 Candles": string[];
|
|
1239
|
+
"Chanukah: 7 Candles": string[];
|
|
1240
|
+
"Chanukah: 8 Candles": string[];
|
|
1241
|
+
"Chanukah: 8th Day": string[];
|
|
1242
|
+
"Days of the Omer": string[];
|
|
1243
|
+
Omer: string[];
|
|
1244
|
+
"day of the Omer": string[];
|
|
1245
|
+
"Erev Pesach": string[];
|
|
1246
|
+
"Erev Purim": string[];
|
|
1247
|
+
"Erev Rosh Hashana": string[];
|
|
1248
|
+
"Erev Shavuot": string[];
|
|
1249
|
+
"Erev Simchat Torah": string[];
|
|
1250
|
+
"Erev Sukkot": string[];
|
|
1251
|
+
"Erev Tish'a B'Av": string[];
|
|
1252
|
+
"Erev Yom Kippur": string[];
|
|
1253
|
+
Havdalah: string[];
|
|
1254
|
+
"Lag BaOmer": string[];
|
|
1255
|
+
"Leil Selichot": string[];
|
|
1256
|
+
Pesach: string[];
|
|
1257
|
+
"Pesach I": string[];
|
|
1258
|
+
"Pesach II": string[];
|
|
1259
|
+
"Pesach II (CH''M)": string[];
|
|
1260
|
+
"Pesach III (CH''M)": string[];
|
|
1261
|
+
"Pesach IV (CH''M)": string[];
|
|
1262
|
+
"Pesach Sheni": string[];
|
|
1263
|
+
"Pesach V (CH''M)": string[];
|
|
1264
|
+
"Pesach VI (CH''M)": string[];
|
|
1265
|
+
"Pesach VII": string[];
|
|
1266
|
+
"Pesach VIII": string[];
|
|
1267
|
+
"Pesach Shabbat Chol ha-Moed": string[];
|
|
1268
|
+
Purim: string[];
|
|
1269
|
+
"Purim Katan": string[];
|
|
1270
|
+
"Rosh Chodesh %s": string[];
|
|
1271
|
+
"Rosh Chodesh": string[];
|
|
1272
|
+
"Rosh Hashana": string[];
|
|
1273
|
+
"Rosh Hashana I": string[];
|
|
1274
|
+
"Rosh Hashana II": string[];
|
|
1275
|
+
"Shabbat Chazon": string[];
|
|
1276
|
+
"Shabbat HaChodesh": string[];
|
|
1277
|
+
"Shabbat HaGadol": string[];
|
|
1278
|
+
"Shabbat Nachamu": string[];
|
|
1279
|
+
"Shabbat Parah": string[];
|
|
1280
|
+
"Shabbat Shekalim": string[];
|
|
1281
|
+
"Shabbat Shuva": string[];
|
|
1282
|
+
"Shabbat Zachor": string[];
|
|
1283
|
+
Shavuot: string[];
|
|
1284
|
+
"Shavuot I": string[];
|
|
1285
|
+
"Shavuot II": string[];
|
|
1286
|
+
"Shmini Atzeret": string[];
|
|
1287
|
+
"Shushan Purim": string[];
|
|
1288
|
+
Sigd: string[];
|
|
1289
|
+
"Simchat Torah": string[];
|
|
1290
|
+
Sukkot: string[];
|
|
1291
|
+
"Sukkot I": string[];
|
|
1292
|
+
"Sukkot II": string[];
|
|
1293
|
+
"Sukkot II (CH''M)": string[];
|
|
1294
|
+
"Sukkot III (CH''M)": string[];
|
|
1295
|
+
"Sukkot IV (CH''M)": string[];
|
|
1296
|
+
"Sukkot V (CH''M)": string[];
|
|
1297
|
+
"Sukkot VI (CH''M)": string[];
|
|
1298
|
+
"Sukkot VII (Hoshana Raba)": string[];
|
|
1299
|
+
"Sukkot Shabbat Chol ha-Moed": string[];
|
|
1300
|
+
"Ta'anit Bechorot": string[];
|
|
1301
|
+
"Ta'anit Esther": string[];
|
|
1302
|
+
"Tish'a B'Av": string[];
|
|
1303
|
+
"Tu B'Av": string[];
|
|
1304
|
+
"Tu BiShvat": string[];
|
|
1305
|
+
"Tu B'Shvat": string[];
|
|
1306
|
+
"Tzom Gedaliah": string[];
|
|
1307
|
+
"Tzom Tammuz": string[];
|
|
1308
|
+
"Yom HaAtzma'ut": string[];
|
|
1309
|
+
"Yom HaShoah": string[];
|
|
1310
|
+
"Yom HaZikaron": string[];
|
|
1311
|
+
"Yom Kippur": string[];
|
|
1312
|
+
"Yom Yerushalayim": string[];
|
|
1313
|
+
"Yom HaAliyah": string[];
|
|
1314
|
+
"Yom HaAliyah School Observance": string[];
|
|
1315
|
+
"Rosh Chodesh Adar": string[];
|
|
1316
|
+
"Rosh Chodesh Adar I": string[];
|
|
1317
|
+
"Rosh Chodesh Adar II": string[];
|
|
1318
|
+
"Rosh Chodesh Av": string[];
|
|
1319
|
+
"Rosh Chodesh Cheshvan": string[];
|
|
1320
|
+
"Rosh Chodesh Elul": string[];
|
|
1321
|
+
"Rosh Chodesh Iyyar": string[];
|
|
1322
|
+
"Rosh Chodesh Kislev": string[];
|
|
1323
|
+
"Rosh Chodesh Nisan": string[];
|
|
1324
|
+
"Rosh Chodesh Sh'vat": string[];
|
|
1325
|
+
"Rosh Chodesh Sivan": string[];
|
|
1326
|
+
"Rosh Chodesh Tamuz": string[];
|
|
1327
|
+
"Rosh Chodesh Tammuz": string[];
|
|
1328
|
+
"Rosh Chodesh Tevet": string[];
|
|
1329
|
+
min: string[];
|
|
1330
|
+
"Fast begins": string[];
|
|
1331
|
+
"Fast ends": string[];
|
|
1332
|
+
"Rosh Hashana LaBehemot": string[];
|
|
1333
|
+
"Tish'a B'Av (observed)": string[];
|
|
1334
|
+
"Shabbat Mevarchim Chodesh": string[];
|
|
1335
|
+
"Shabbat Shirah": string[];
|
|
1336
|
+
Lovingkindness: string[];
|
|
1337
|
+
Might: string[];
|
|
1338
|
+
Beauty: string[];
|
|
1339
|
+
Eternity: string[];
|
|
1340
|
+
Splendor: string[];
|
|
1341
|
+
Foundation: string[];
|
|
1342
|
+
Majesty: string[];
|
|
1343
|
+
day: string[];
|
|
1344
|
+
"Yom Kippur Katan": string[];
|
|
1345
|
+
Yizkor: string[];
|
|
1346
|
+
"Family Day": string[];
|
|
1347
|
+
"Yitzhak Rabin Memorial Day": string[];
|
|
1348
|
+
"Jabotinsky Day": string[];
|
|
1349
|
+
"Herzl Day": string[];
|
|
1350
|
+
"Ben-Gurion Day": string[];
|
|
1351
|
+
"Hebrew Language Day": string[];
|
|
1352
|
+
"Birkat Hachamah": string[];
|
|
1353
|
+
"Shushan Purim Katan": string[];
|
|
1354
|
+
"Purim Meshulash": string[];
|
|
1355
|
+
"Chag HaBanot": string[];
|
|
1356
|
+
Molad: string[];
|
|
1357
|
+
chalakim: string[];
|
|
1358
|
+
};
|
|
1359
|
+
};
|
|
1360
|
+
export { contexts_5 as contexts };
|
|
1361
|
+
}
|
|
1362
|
+
declare namespace noNikudOverride {
|
|
1363
|
+
let headers_6: {
|
|
1364
|
+
"plural-forms": string;
|
|
1365
|
+
language: string;
|
|
1366
|
+
};
|
|
1367
|
+
export { headers_6 as headers };
|
|
1368
|
+
let contexts_6: {
|
|
1369
|
+
"": {
|
|
1370
|
+
Korach: string[];
|
|
1371
|
+
Chukat: string[];
|
|
1372
|
+
"Yom Kippur": string[];
|
|
1373
|
+
"Yom Kippur Katan": string[];
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
export { contexts_6 as contexts };
|
|
1377
|
+
}
|
|
1378
|
+
declare namespace poHeNoNikud { }
|
|
1379
|
+
/**
|
|
1380
|
+
* Holiday flags for Event. These flags are typically
|
|
1381
|
+
* combined using bitwise arithmetic to form a mask.
|
|
1382
|
+
*/
|
|
1383
|
+
type flags = number;
|
|
1384
|
+
declare namespace flags {
|
|
1385
|
+
let CHAG: number;
|
|
1386
|
+
let LIGHT_CANDLES: number;
|
|
1387
|
+
let YOM_TOV_ENDS: number;
|
|
1388
|
+
let CHUL_ONLY: number;
|
|
1389
|
+
let IL_ONLY: number;
|
|
1390
|
+
let LIGHT_CANDLES_TZEIS: number;
|
|
1391
|
+
let CHANUKAH_CANDLES: number;
|
|
1392
|
+
let ROSH_CHODESH: number;
|
|
1393
|
+
let MINOR_FAST: number;
|
|
1394
|
+
let SPECIAL_SHABBAT: number;
|
|
1395
|
+
let PARSHA_HASHAVUA: number;
|
|
1396
|
+
let OMER_COUNT: number;
|
|
1397
|
+
let MODERN_HOLIDAY: number;
|
|
1398
|
+
let MAJOR_FAST: number;
|
|
1399
|
+
let SHABBAT_MEVARCHIM: number;
|
|
1400
|
+
let MOLAD: number;
|
|
1401
|
+
let USER_EVENT: number;
|
|
1402
|
+
let HEBREW_DATE: number;
|
|
1403
|
+
let MINOR_HOLIDAY: number;
|
|
1404
|
+
let EREV: number;
|
|
1405
|
+
let CHOL_HAMOED: number;
|
|
1406
|
+
let YOM_KIPPUR_KATAN: number;
|
|
1407
|
+
let YIZKOR: number;
|
|
1408
|
+
}
|
|
1409
|
+
declare const flagToCategory: (string | number)[][];
|
|
1410
|
+
/**
|
|
1411
|
+
* Represents an Event with a title, date, and flags.
|
|
1412
|
+
*
|
|
1413
|
+
* Events are used to represent holidays, candle-lighting times,
|
|
1414
|
+
* Torah readings, and more.
|
|
1415
|
+
*
|
|
1416
|
+
* To get the title of the event a language other than English
|
|
1417
|
+
* with Sephardic transliterations, use the `render()` method.
|
|
1418
|
+
*/
|
|
1419
|
+
declare class Event {
|
|
1420
|
+
/**
|
|
1421
|
+
* Constructs Event
|
|
1422
|
+
* @param date Hebrew date event occurs
|
|
1423
|
+
* @param desc Description (not translated)
|
|
1424
|
+
* @param [mask=0] optional bitmask of holiday flags (see {@link flags})
|
|
1425
|
+
* @param [attrs={}] optional additional attributes (e.g. `eventTimeStr`, `cholHaMoedDay`)
|
|
1426
|
+
*/
|
|
1427
|
+
constructor(date: any, desc: any, mask?: number | undefined, attrs?: any);
|
|
1428
|
+
date: any;
|
|
1429
|
+
desc: string;
|
|
1430
|
+
mask: number;
|
|
1431
|
+
/**
|
|
1432
|
+
* Hebrew date of this event
|
|
1433
|
+
*/
|
|
1434
|
+
getDate(): any;
|
|
1435
|
+
/**
|
|
1436
|
+
* Gregorian date of this event
|
|
1437
|
+
*/
|
|
1438
|
+
greg(): any;
|
|
1439
|
+
/**
|
|
1440
|
+
* Untranslated title of this event. Note that these description
|
|
1441
|
+
* strings are always in English and will remain stable across releases.
|
|
1442
|
+
* To get the title of the event in another language, use the
|
|
1443
|
+
* `render()` method.
|
|
1444
|
+
*/
|
|
1445
|
+
getDesc(): string;
|
|
1446
|
+
/**
|
|
1447
|
+
* Bitmask of optional event flags. See {@link flags}
|
|
1448
|
+
*/
|
|
1449
|
+
getFlags(): number;
|
|
1450
|
+
/**
|
|
1451
|
+
* Returns (translated) description of this event
|
|
1452
|
+
* @example
|
|
1453
|
+
* const ev = new Event(new HDate(6, 'Sivan', 5749), 'Shavuot', flags.CHAG);
|
|
1454
|
+
* ev.render('en'); // 'Shavuot'
|
|
1455
|
+
* ev.render('he'); // 'שָׁבוּעוֹת'
|
|
1456
|
+
* ev.render('ashkenazi'); // 'Shavuos'
|
|
1457
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1458
|
+
*/
|
|
1459
|
+
render(locale?: any): any;
|
|
1460
|
+
/**
|
|
1461
|
+
* Returns a brief (translated) description of this event.
|
|
1462
|
+
* For most events, this is the same as render(). For some events, it procudes
|
|
1463
|
+
* a shorter text (e.g. without a time or added description).
|
|
1464
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1465
|
+
*/
|
|
1466
|
+
renderBrief(locale?: any): any;
|
|
1467
|
+
/**
|
|
1468
|
+
* Optional holiday-specific Emoji or `null`.
|
|
1469
|
+
*/
|
|
1470
|
+
getEmoji(): any;
|
|
1471
|
+
/**
|
|
1472
|
+
* Returns a simplified (untranslated) description for this event. For example,
|
|
1473
|
+
* the `HolidayEvent` class supports
|
|
1474
|
+
* "Erev Pesach" => "Pesach", and "Sukkot III (CH''M)" => "Sukkot".
|
|
1475
|
+
* For many holidays the basename and the event description are the same.
|
|
1476
|
+
*/
|
|
1477
|
+
basename(): string;
|
|
1478
|
+
/**
|
|
1479
|
+
* Returns a URL to hebcal.com or sefaria.org for more detail on the event.
|
|
1480
|
+
* Returns `undefined` for events with no detail page.
|
|
1481
|
+
*/
|
|
1482
|
+
url(): undefined;
|
|
1483
|
+
/**
|
|
1484
|
+
* Is this event observed in Israel?
|
|
1485
|
+
* @example
|
|
1486
|
+
* const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
1487
|
+
* ev1.observedInIsrael(); // false
|
|
1488
|
+
* const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
1489
|
+
* ev2.observedInIsrael(); // true
|
|
1490
|
+
*/
|
|
1491
|
+
observedInIsrael(): boolean;
|
|
1492
|
+
/**
|
|
1493
|
+
* Is this event observed in the Diaspora?
|
|
1494
|
+
* @example
|
|
1495
|
+
* const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
1496
|
+
* ev1.observedInDiaspora(); // true
|
|
1497
|
+
* const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
1498
|
+
* ev2.observedInDiaspora(); // true
|
|
1499
|
+
*/
|
|
1500
|
+
observedInDiaspora(): boolean;
|
|
1501
|
+
/**
|
|
1502
|
+
* Is this event observed in Israel/Diaspora?
|
|
1503
|
+
* @example
|
|
1504
|
+
* const ev1 = new Event(new HDate(7, 'Sivan', 5749), 'Shavuot II', flags.CHAG | flags.CHUL_ONLY);
|
|
1505
|
+
* ev1.observedIn(false); // true
|
|
1506
|
+
* ev1.observedIn(true); // false
|
|
1507
|
+
* const ev2 = new Event(new HDate(26, 'Kislev', 5749), 'Chanukah: 3 Candles', 0);
|
|
1508
|
+
* ev2.observedIn(false); // true
|
|
1509
|
+
* ev2.observedIn(true); // true
|
|
1510
|
+
* @param il
|
|
1511
|
+
*/
|
|
1512
|
+
observedIn(il: any): boolean;
|
|
1513
|
+
/**
|
|
1514
|
+
* Returns a list of event categories
|
|
1515
|
+
*/
|
|
1516
|
+
getCategories(): (string | number)[];
|
|
1517
|
+
}
|
|
1518
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1519
|
+
declare const SUN$1: 0;
|
|
1520
|
+
declare const TUE$1: 2;
|
|
1521
|
+
declare const FRI$1: 5;
|
|
1522
|
+
declare const SAT$1: 6;
|
|
1523
|
+
declare const NISAN$1: number;
|
|
1524
|
+
declare const IYYAR: number;
|
|
1525
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1526
|
+
declare const INCOMPLETE: 0;
|
|
1527
|
+
declare const REGULAR: 1;
|
|
1528
|
+
declare const COMPLETE: 2;
|
|
1529
|
+
/**
|
|
1530
|
+
* Represents Parashah HaShavua for an entire Hebrew year
|
|
1531
|
+
*/
|
|
1532
|
+
declare class Sedra {
|
|
1533
|
+
/**
|
|
1534
|
+
* Caculates the Parashah HaShavua for an entire Hebrew year
|
|
1535
|
+
* @param hyear - Hebrew year (e.g. 5749)
|
|
1536
|
+
* @param il - Use Israel sedra schedule (false for Diaspora)
|
|
1537
|
+
*/
|
|
1538
|
+
constructor(hyear: any, il: any);
|
|
1539
|
+
year: any;
|
|
1540
|
+
rh: number;
|
|
1541
|
+
firstSaturday: number;
|
|
1542
|
+
il: boolean;
|
|
1543
|
+
theSedraArray: any;
|
|
1544
|
+
yearKey: string;
|
|
1545
|
+
/**
|
|
1546
|
+
* Returns the date that a parsha occurs
|
|
1547
|
+
* or `null` if the parsha doesn't occur this year
|
|
1548
|
+
* @param parsha if a `string`, specified with Sephardic transliterations
|
|
1549
|
+
* like `'Noach'` or `'Matot-Masei'`. If an array, must be a 1- or 2-element
|
|
1550
|
+
* array such as `['Noach']` or `['Matot', 'Masei']`. If a `number`, should
|
|
1551
|
+
* be a 0-based parsha index (`0` for Bereshit, `1` for Noach) or a negative
|
|
1552
|
+
* number for a doubled parsha (e.g. `-21` for Vayakhel-Pekudei)
|
|
1553
|
+
*/
|
|
1554
|
+
find(parsha: any): any;
|
|
1555
|
+
findInternal(parsha: any): HDate | null;
|
|
1556
|
+
/**
|
|
1557
|
+
* Returns the date that a parsha (or its doubled or undoubled counterpart)
|
|
1558
|
+
* occurs, or `null` if the parsha doesn't occur this year
|
|
1559
|
+
*/
|
|
1560
|
+
findContaining(parsha: any): any;
|
|
1561
|
+
/**
|
|
1562
|
+
* Returns the underlying annual sedra schedule.
|
|
1563
|
+
* Used by `@hebcal/triennial`
|
|
1564
|
+
*/
|
|
1565
|
+
getSedraArray(): any;
|
|
1566
|
+
/**
|
|
1567
|
+
* R.D. date of the first Saturday on or after Rosh Hashana
|
|
1568
|
+
*/
|
|
1569
|
+
getFirstSaturday(): number;
|
|
1570
|
+
getYear(): any;
|
|
1571
|
+
/**
|
|
1572
|
+
* Returns an object describing the parsha on the first Saturday on or after `hd`
|
|
1573
|
+
* @param hd Hebrew date or R.D. days
|
|
1574
|
+
*/
|
|
1575
|
+
lookup(hd: any): any;
|
|
1576
|
+
}
|
|
1577
|
+
/**
|
|
1578
|
+
* The 54 parshiyot of the Torah as transilterated strings.
|
|
1579
|
+
* * parshiot[0] == `Bereshit`
|
|
1580
|
+
* * parshiot[1] == `Noach`
|
|
1581
|
+
* * parshiot[52] == `Ha'azinu`
|
|
1582
|
+
* * parshiot[53] == `Vezot Haberakhah`
|
|
1583
|
+
* @readonly
|
|
1584
|
+
* @type {string[]}
|
|
1585
|
+
*/
|
|
1586
|
+
declare const parshiot: string[];
|
|
1587
|
+
declare const parsha2id: Map<any, any>;
|
|
1588
|
+
declare const doubles: number[];
|
|
1589
|
+
declare const RH: "Rosh Hashana";
|
|
1590
|
+
declare const YK: "Yom Kippur";
|
|
1591
|
+
declare const SUKKOT: "Sukkot";
|
|
1592
|
+
declare const CHMSUKOT: "Sukkot Shabbat Chol ha-Moed";
|
|
1593
|
+
declare const SHMINI: "Shmini Atzeret";
|
|
1594
|
+
declare const PESACH: "Pesach";
|
|
1595
|
+
declare const PESACH1: "Pesach I";
|
|
1596
|
+
declare const CHMPESACH: "Pesach Shabbat Chol ha-Moed";
|
|
1597
|
+
declare const PESACH7: "Pesach VII";
|
|
1598
|
+
declare const PESACH8: "Pesach VIII";
|
|
1599
|
+
declare const SHAVUOT$1: "Shavuot";
|
|
1600
|
+
declare const yearStartVayeilech: (string | number)[];
|
|
1601
|
+
declare const yearStartHaazinu: (string | number)[];
|
|
1602
|
+
declare const yearStartRH: (string | number)[];
|
|
1603
|
+
declare const r020: any[];
|
|
1604
|
+
declare const r027: any[];
|
|
1605
|
+
declare const r3340: any[];
|
|
1606
|
+
declare const r4349: any[];
|
|
1607
|
+
declare const r4350: any[];
|
|
1608
|
+
/**
|
|
1609
|
+
* The ordinary year types (keviot)
|
|
1610
|
+
* names are leap/nonleap - day - incomplete/regular/complete - diaspora/Israel
|
|
1611
|
+
* @private
|
|
1612
|
+
* @readonly
|
|
1613
|
+
*/
|
|
1614
|
+
declare const types: {
|
|
1615
|
+
'020': (string | number)[];
|
|
1616
|
+
'0220': (string | number)[];
|
|
1617
|
+
'0510': (string | number)[];
|
|
1618
|
+
'0511': (string | number)[];
|
|
1619
|
+
'052': (string | number)[];
|
|
1620
|
+
'070': (string | number)[];
|
|
1621
|
+
'072': (string | number)[];
|
|
1622
|
+
'1200': (string | number)[];
|
|
1623
|
+
'1201': (string | number)[];
|
|
1624
|
+
'1220': (string | number)[];
|
|
1625
|
+
'1221': (string | number)[];
|
|
1626
|
+
'150': (string | number)[];
|
|
1627
|
+
'152': (string | number)[];
|
|
1628
|
+
'170': (string | number)[];
|
|
1629
|
+
'1720': (string | number)[];
|
|
1630
|
+
};
|
|
1631
|
+
declare const sedraCache: QuickLRU;
|
|
1632
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1633
|
+
declare const Nisan: number;
|
|
1634
|
+
declare const Iyyar: number;
|
|
1635
|
+
declare const Sivan: number;
|
|
1636
|
+
declare const Tamuz: number;
|
|
1637
|
+
declare const Av: number;
|
|
1638
|
+
declare const Elul: number;
|
|
1639
|
+
declare const Tishrei: number;
|
|
1640
|
+
declare const Cheshvan: number;
|
|
1641
|
+
declare const Kislev: number;
|
|
1642
|
+
declare const Shvat: number;
|
|
1643
|
+
declare const Adar2: number;
|
|
1644
|
+
declare const CHAG$1: number;
|
|
1645
|
+
declare const LIGHT_CANDLES: number;
|
|
1646
|
+
declare const YOM_TOV_ENDS: number;
|
|
1647
|
+
declare const CHUL_ONLY: number;
|
|
1648
|
+
declare const IL_ONLY$1: number;
|
|
1649
|
+
declare const LIGHT_CANDLES_TZEIS$1: number;
|
|
1650
|
+
declare const MAJOR_FAST$1: number;
|
|
1651
|
+
declare const MINOR_HOLIDAY$1: number;
|
|
1652
|
+
declare const EREV$1: number;
|
|
1653
|
+
declare const CHOL_HAMOED: number;
|
|
1654
|
+
declare const emojiPesach: "\uD83E\uDED3";
|
|
1655
|
+
declare const emojiSukkot: "\uD83C\uDF3F\uD83C\uDF4B";
|
|
1656
|
+
declare const ROSH_HASHANA_II: "Rosh Hashana II";
|
|
1657
|
+
declare const EREV_YOM_KIPPUR: "Erev Yom Kippur";
|
|
1658
|
+
declare const YOM_KIPPUR: "Yom Kippur";
|
|
1659
|
+
declare const EREV_SUKKOT: "Erev Sukkot";
|
|
1660
|
+
declare const SUKKOT_I: "Sukkot I";
|
|
1661
|
+
declare const SUKKOT_II: "Sukkot II";
|
|
1662
|
+
declare const SUKKOT_III_CHM: "Sukkot III (CH''M)";
|
|
1663
|
+
declare const SUKKOT_IV_CHM: "Sukkot IV (CH''M)";
|
|
1664
|
+
declare const SUKKOT_V_CHM: "Sukkot V (CH''M)";
|
|
1665
|
+
declare const SUKKOT_VI_CHM: "Sukkot VI (CH''M)";
|
|
1666
|
+
declare const SHMINI_ATZERET: "Shmini Atzeret";
|
|
1667
|
+
declare const SIMCHAT_TORAH: "Simchat Torah";
|
|
1668
|
+
declare const SUKKOT_II_CHM: "Sukkot II (CH''M)";
|
|
1669
|
+
declare const SUKKOT_VII_HOSHANA_RABA: "Sukkot VII (Hoshana Raba)";
|
|
1670
|
+
declare const CHANUKAH_1_CANDLE: "Chanukah: 1 Candle";
|
|
1671
|
+
declare const TU_BISHVAT: "Tu BiShvat";
|
|
1672
|
+
declare const EREV_PURIM: "Erev Purim";
|
|
1673
|
+
declare const PURIM: "Purim";
|
|
1674
|
+
declare const SHUSHAN_PURIM: "Shushan Purim";
|
|
1675
|
+
declare const EREV_PESACH: "Erev Pesach";
|
|
1676
|
+
declare const PESACH_I: "Pesach I";
|
|
1677
|
+
declare const PESACH_II: "Pesach II";
|
|
1678
|
+
declare const PESACH_II_CHM: "Pesach II (CH''M)";
|
|
1679
|
+
declare const PESACH_III_CHM: "Pesach III (CH''M)";
|
|
1680
|
+
declare const PESACH_IV_CHM: "Pesach IV (CH''M)";
|
|
1681
|
+
declare const PESACH_V_CHM: "Pesach V (CH''M)";
|
|
1682
|
+
declare const PESACH_VI_CHM: "Pesach VI (CH''M)";
|
|
1683
|
+
declare const PESACH_VII: "Pesach VII";
|
|
1684
|
+
declare const PESACH_VIII: "Pesach VIII";
|
|
1685
|
+
declare const PESACH_SHENI: "Pesach Sheni";
|
|
1686
|
+
declare const LAG_BAOMER: "Lag BaOmer";
|
|
1687
|
+
declare const EREV_SHAVUOT: "Erev Shavuot";
|
|
1688
|
+
declare const SHAVUOT: "Shavuot";
|
|
1689
|
+
declare const SHAVUOT_I: "Shavuot I";
|
|
1690
|
+
declare const SHAVUOT_II: "Shavuot II";
|
|
1691
|
+
declare const TU_BAV: "Tu B'Av";
|
|
1692
|
+
declare const ROSH_HASHANA_LABEHEMOT: "Rosh Hashana LaBehemot";
|
|
1693
|
+
declare const EREV_ROSH_HASHANA: "Erev Rosh Hashana";
|
|
1694
|
+
declare const YOM_YERUSHALAYIM: "Yom Yerushalayim";
|
|
1695
|
+
declare const BEN_GURION_DAY: "Ben-Gurion Day";
|
|
1696
|
+
declare const FAMILY_DAY: "Family Day";
|
|
1697
|
+
declare const YITZHAK_RABIN_MEMORIAL_DAY: "Yitzhak Rabin Memorial Day";
|
|
1698
|
+
declare const HERZL_DAY: "Herzl Day";
|
|
1699
|
+
declare const JABOTINSKY_DAY: "Jabotinsky Day";
|
|
1700
|
+
declare const SIGD: "Sigd";
|
|
1701
|
+
declare const YOM_HAALIYAH: "Yom HaAliyah";
|
|
1702
|
+
declare const YOM_HAALIYAH_SCHOOL_OBSERVANCE: "Yom HaAliyah School Observance";
|
|
1703
|
+
declare const HEBREW_LANGUAGE_DAY: "Hebrew Language Day";
|
|
1704
|
+
/**
|
|
1705
|
+
* Transliterated names of holidays, used by `Event.getDesc()`
|
|
1706
|
+
*/
|
|
1707
|
+
type holidayDesc = string;
|
|
1708
|
+
declare namespace holidayDesc {
|
|
1709
|
+
export let ASARA_BTEVET: string;
|
|
1710
|
+
export let BIRKAT_HACHAMAH: string;
|
|
1711
|
+
export let CHAG_HABANOT: string;
|
|
1712
|
+
export let CHANUKAH_8TH_DAY: string;
|
|
1713
|
+
export let EREV_TISHA_BAV: string;
|
|
1714
|
+
export let LEIL_SELICHOT: string;
|
|
1715
|
+
export let PURIM_KATAN: string;
|
|
1716
|
+
export let PURIM_MESHULASH: string;
|
|
1717
|
+
export let SHABBAT_CHAZON: string;
|
|
1718
|
+
export let SHABBAT_HACHODESH: string;
|
|
1719
|
+
export let SHABBAT_HAGADOL: string;
|
|
1720
|
+
export let SHABBAT_NACHAMU: string;
|
|
1721
|
+
export let SHABBAT_PARAH: string;
|
|
1722
|
+
export let SHABBAT_SHEKALIM: string;
|
|
1723
|
+
export let SHABBAT_SHIRAH: string;
|
|
1724
|
+
export let SHABBAT_SHUVA: string;
|
|
1725
|
+
export let SHABBAT_ZACHOR: string;
|
|
1726
|
+
export let SHUSHAN_PURIM_KATAN: string;
|
|
1727
|
+
export let TAANIT_BECHOROT: string;
|
|
1728
|
+
export let TAANIT_ESTHER: string;
|
|
1729
|
+
export let TISHA_BAV: string;
|
|
1730
|
+
export let TZOM_GEDALIAH: string;
|
|
1731
|
+
export let TZOM_TAMMUZ: string;
|
|
1732
|
+
export let YOM_HAATZMA_UT: string;
|
|
1733
|
+
export let YOM_HASHOAH: string;
|
|
1734
|
+
export let YOM_HAZIKARON: string;
|
|
1735
|
+
export { CHANUKAH_1_CANDLE };
|
|
1736
|
+
export { EREV_PURIM };
|
|
1737
|
+
export { LAG_BAOMER };
|
|
1738
|
+
export { PESACH_SHENI };
|
|
1739
|
+
export { ROSH_HASHANA_LABEHEMOT };
|
|
1740
|
+
export { SHUSHAN_PURIM };
|
|
1741
|
+
export { TU_BAV };
|
|
1742
|
+
export { TU_BISHVAT };
|
|
1743
|
+
}
|
|
1744
|
+
declare const staticHolidays: ({
|
|
1745
|
+
mm: number;
|
|
1746
|
+
dd: number;
|
|
1747
|
+
desc: string;
|
|
1748
|
+
flags: number;
|
|
1749
|
+
emoji: string;
|
|
1750
|
+
chmDay?: undefined;
|
|
1751
|
+
} | {
|
|
1752
|
+
mm: number;
|
|
1753
|
+
dd: number;
|
|
1754
|
+
desc: string;
|
|
1755
|
+
flags: number;
|
|
1756
|
+
emoji?: undefined;
|
|
1757
|
+
chmDay?: undefined;
|
|
1758
|
+
} | {
|
|
1759
|
+
mm: number;
|
|
1760
|
+
dd: number;
|
|
1761
|
+
desc: string;
|
|
1762
|
+
flags: number;
|
|
1763
|
+
chmDay: number;
|
|
1764
|
+
emoji: string;
|
|
1765
|
+
})[];
|
|
1766
|
+
declare const staticModernHolidays: ({
|
|
1767
|
+
firstYear: number;
|
|
1768
|
+
mm: number;
|
|
1769
|
+
dd: number;
|
|
1770
|
+
desc: string;
|
|
1771
|
+
chul: boolean;
|
|
1772
|
+
satPostponeToSun?: undefined;
|
|
1773
|
+
friPostponeToSun?: undefined;
|
|
1774
|
+
friSatMovetoThu?: undefined;
|
|
1775
|
+
suppressEmoji?: undefined;
|
|
1776
|
+
} | {
|
|
1777
|
+
firstYear: number;
|
|
1778
|
+
mm: number;
|
|
1779
|
+
dd: number;
|
|
1780
|
+
desc: string;
|
|
1781
|
+
satPostponeToSun: boolean;
|
|
1782
|
+
friPostponeToSun: boolean;
|
|
1783
|
+
chul?: undefined;
|
|
1784
|
+
friSatMovetoThu?: undefined;
|
|
1785
|
+
suppressEmoji?: undefined;
|
|
1786
|
+
} | {
|
|
1787
|
+
firstYear: number;
|
|
1788
|
+
mm: number;
|
|
1789
|
+
dd: number;
|
|
1790
|
+
desc: string;
|
|
1791
|
+
chul?: undefined;
|
|
1792
|
+
satPostponeToSun?: undefined;
|
|
1793
|
+
friPostponeToSun?: undefined;
|
|
1794
|
+
friSatMovetoThu?: undefined;
|
|
1795
|
+
suppressEmoji?: undefined;
|
|
1796
|
+
} | {
|
|
1797
|
+
firstYear: number;
|
|
1798
|
+
mm: number;
|
|
1799
|
+
dd: number;
|
|
1800
|
+
desc: string;
|
|
1801
|
+
friSatMovetoThu: boolean;
|
|
1802
|
+
chul?: undefined;
|
|
1803
|
+
satPostponeToSun?: undefined;
|
|
1804
|
+
friPostponeToSun?: undefined;
|
|
1805
|
+
suppressEmoji?: undefined;
|
|
1806
|
+
} | {
|
|
1807
|
+
firstYear: number;
|
|
1808
|
+
mm: number;
|
|
1809
|
+
dd: number;
|
|
1810
|
+
desc: string;
|
|
1811
|
+
satPostponeToSun: boolean;
|
|
1812
|
+
chul?: undefined;
|
|
1813
|
+
friPostponeToSun?: undefined;
|
|
1814
|
+
friSatMovetoThu?: undefined;
|
|
1815
|
+
suppressEmoji?: undefined;
|
|
1816
|
+
} | {
|
|
1817
|
+
firstYear: number;
|
|
1818
|
+
mm: number;
|
|
1819
|
+
dd: number;
|
|
1820
|
+
desc: string;
|
|
1821
|
+
chul: boolean;
|
|
1822
|
+
suppressEmoji: boolean;
|
|
1823
|
+
friSatMovetoThu: boolean;
|
|
1824
|
+
satPostponeToSun?: undefined;
|
|
1825
|
+
friPostponeToSun?: undefined;
|
|
1826
|
+
})[];
|
|
1827
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1828
|
+
/** Represents a built-in holiday like Pesach, Purim or Tu BiShvat */
|
|
1829
|
+
declare class HolidayEvent extends Event {
|
|
1830
|
+
basename(): any;
|
|
1831
|
+
url(): string | undefined;
|
|
1832
|
+
urlDateSuffix(): string;
|
|
1833
|
+
getEmoji(): any;
|
|
1834
|
+
getCategories(): any;
|
|
1835
|
+
/**
|
|
1836
|
+
* Returns (translated) description of this event
|
|
1837
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1838
|
+
*/
|
|
1839
|
+
render(locale?: any): any;
|
|
1840
|
+
/**
|
|
1841
|
+
* Returns a brief (translated) description of this event.
|
|
1842
|
+
* For most events, this is the same as render(). For some events, it procudes
|
|
1843
|
+
* a shorter text (e.g. without a time or added description).
|
|
1844
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1845
|
+
*/
|
|
1846
|
+
renderBrief(locale?: any): any;
|
|
1847
|
+
}
|
|
1848
|
+
/**
|
|
1849
|
+
* Because Asara B'Tevet often occurs twice in the same Gregorian year,
|
|
1850
|
+
* we subclass HolidayEvent to generate the correct URL.
|
|
1851
|
+
*/
|
|
1852
|
+
declare class AsaraBTevetEvent extends HolidayEvent {
|
|
1853
|
+
}
|
|
1854
|
+
declare const chanukahEmoji: "\uD83D\uDD4E";
|
|
1855
|
+
declare const KEYCAP_DIGITS: string[];
|
|
1856
|
+
/**
|
|
1857
|
+
* Because Chanukah sometimes starts in December and ends in January,
|
|
1858
|
+
* we subclass HolidayEvent to generate the correct URL.
|
|
1859
|
+
*/
|
|
1860
|
+
declare class ChanukahEvent extends HolidayEvent {
|
|
1861
|
+
/**
|
|
1862
|
+
* @param chanukahDay should be undefined for 1st night of Chanukah
|
|
1863
|
+
*/
|
|
1864
|
+
constructor(date: any, desc: any, mask: any, chanukahDay: any);
|
|
1865
|
+
chanukahDay: any;
|
|
1866
|
+
emoji: string;
|
|
1867
|
+
}
|
|
1868
|
+
/** Represents Rosh Hashana, the Jewish New Year */
|
|
1869
|
+
declare class RoshHashanaEvent extends HolidayEvent {
|
|
1870
|
+
/**
|
|
1871
|
+
* @private
|
|
1872
|
+
* @param date Hebrew date event occurs
|
|
1873
|
+
* @param hyear Hebrew year
|
|
1874
|
+
* @param mask optional holiday flags
|
|
1875
|
+
*/
|
|
1876
|
+
private constructor();
|
|
1877
|
+
hyear: any;
|
|
1878
|
+
/**
|
|
1879
|
+
* Returns (translated) description of this event
|
|
1880
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1881
|
+
*/
|
|
1882
|
+
render(locale?: any): string;
|
|
1883
|
+
getEmoji(): string;
|
|
1884
|
+
}
|
|
1885
|
+
declare const roshChodeshStr: "Rosh Chodesh";
|
|
1886
|
+
/** Represents Rosh Chodesh, the beginning of a new month */
|
|
1887
|
+
declare class RoshChodeshEvent extends HolidayEvent {
|
|
1888
|
+
/**
|
|
1889
|
+
* Constructs Rosh Chodesh event
|
|
1890
|
+
* @param date Hebrew date event occurs
|
|
1891
|
+
* @param monthName Hebrew month name (not translated)
|
|
1892
|
+
*/
|
|
1893
|
+
constructor(date: any, monthName: any);
|
|
1894
|
+
/**
|
|
1895
|
+
* Returns (translated) description of this event
|
|
1896
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1897
|
+
*/
|
|
1898
|
+
render(locale?: any): string;
|
|
1899
|
+
}
|
|
1900
|
+
/*! @hebcal/core v6.0.7, distributed under GPLv2 https://www.gnu.org/licenses/gpl-2.0.txt */
|
|
1901
|
+
declare const ykk: "Yom Kippur Katan";
|
|
1902
|
+
/** YKK is minor day of atonement on the day preceeding each Rosh Chodesh */
|
|
1903
|
+
declare class YomKippurKatanEvent extends HolidayEvent {
|
|
1904
|
+
/**
|
|
1905
|
+
* @private
|
|
1906
|
+
* @param date Hebrew date event occurs
|
|
1907
|
+
* @param nextMonthName name of the upcoming month
|
|
1908
|
+
*/
|
|
1909
|
+
private constructor();
|
|
1910
|
+
nextMonthName: any;
|
|
1911
|
+
memo: string;
|
|
1912
|
+
/**
|
|
1913
|
+
* @param [locale] Optional locale name (defaults to empty locale)
|
|
1914
|
+
*/
|
|
1915
|
+
render(locale?: any): string;
|
|
1916
|
+
url(): undefined;
|
|
1917
|
+
}
|
|
1918
|
+
declare const CHAG: number;
|
|
1919
|
+
declare const IL_ONLY: number;
|
|
1920
|
+
declare const LIGHT_CANDLES_TZEIS: number;
|
|
1921
|
+
declare const CHANUKAH_CANDLES: number;
|
|
1922
|
+
declare const MINOR_FAST: number;
|
|
1923
|
+
declare const SPECIAL_SHABBAT: number;
|
|
1924
|
+
declare const MODERN_HOLIDAY: number;
|
|
1925
|
+
declare const MAJOR_FAST: number;
|
|
1926
|
+
declare const MINOR_HOLIDAY: number;
|
|
1927
|
+
declare const EREV: number;
|
|
1928
|
+
declare const SUN: 0;
|
|
1929
|
+
declare const TUE: 2;
|
|
1930
|
+
declare const THU: 4;
|
|
1931
|
+
declare const FRI: 5;
|
|
1932
|
+
declare const SAT: 6;
|
|
1933
|
+
declare const NISAN: number;
|
|
1934
|
+
declare const TAMUZ: number;
|
|
1935
|
+
declare const AV: number;
|
|
1936
|
+
declare const TISHREI: number;
|
|
1937
|
+
declare const KISLEV: number;
|
|
1938
|
+
declare const TEVET: number;
|
|
1939
|
+
declare const ADAR_I: number;
|
|
1940
|
+
declare const ADAR_II: number;
|
|
1941
|
+
declare namespace emojiIsraelFlag {
|
|
1942
|
+
let emoji: string;
|
|
1943
|
+
}
|
|
1944
|
+
declare const yearCache: QuickLRU;
|