Skip to content

Commit

Permalink
Add optional useElevation to Zmanim ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin committed Jan 12, 2024
1 parent 2dc67af commit 6049f0f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hebcal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,13 @@ declare module '@hebcal/core' {
* @param gloc GeoLocation including latitude, longitude, and timezone
* @param date Regular or Hebrew Date. If `date` is a regular `Date`,
* hours, minutes, seconds and milliseconds are ignored
* @param useElevation use elevation for calculations (default `false`).
* If `true`, use elevation to affect the calculation of all sunrise/sunset based
* zmanim. Note: there are some zmanim such as degree-based zmanim that are driven
* by the amount of light in the sky and are not impacted by elevation.
* These zmanim intentionally do not support elevation adjustment.
*/
constructor(gloc: GeoLocation, date: Date | HDate);
constructor(gloc: GeoLocation, date: Date | HDate, useElevation?: boolean);

/**
* Returns a string like "2022-04-01T13:06:00-11:00"
Expand Down

0 comments on commit 6049f0f

Please sign in to comment.