salat-first
Version:
Islamic prayer times calculation with special support for Moroccan methods and Maliki madhab
61 lines (60 loc) • 1.16 kB
TypeScript
/**
* Prayer names
*/
export declare const Prayer: {
/**
* Fajr prayer
*/
Fajr: string;
/**
* Sunrise time
*/
Sunrise: string;
/**
* Dhuhr prayer
*/
Dhuhr: string;
/**
* Asr prayer
*/
Asr: string;
/**
* Maghrib prayer
*/
Maghrib: string;
/**
* Isha prayer
*/
Isha: string;
/**
* No prayer (used when time is before Fajr)
*/
None: string;
};
/**
* High latitude adjustment methods
*/
export declare enum HighLatitudeAdjustment {
/**
* No adjustment
*/
None = "none",
/**
* Middle of the night method
*/
MiddleOfTheNight = "middleofthenight",
/**
* One-seventh of the night method
*/
SeventhOfTheNight = "seventhofthenight",
/**
* Twilight angle method
*/
TwilightAngle = "twilightangle"
}
/**
* Recommended high latitude adjustment method based on latitude
* @param latitude The latitude in degrees
* @returns The recommended adjustment method
*/
export declare function getRecommendedHighLatitudeAdjustment(latitude: number): HighLatitudeAdjustment;