salat-first
Version:
Islamic prayer times calculation with special support for Moroccan methods and Maliki madhab
28 lines (27 loc) • 992 B
TypeScript
/**
* Validates that a number is within a specified range
* @param value The number to validate
* @param min The minimum allowed value
* @param max The maximum allowed value
* @param name The name of the parameter (for the error message)
* @throws Error if the value is outside the range
*/
export declare function validateInRange(value: number, min: number, max: number, name: string): void;
/**
* Validates that a latitude value is valid
* @param latitude The latitude to validate
* @throws Error if the latitude is invalid
*/
export declare function validateLatitude(latitude: number): void;
/**
* Validates that a longitude value is valid
* @param longitude The longitude to validate
* @throws Error if the longitude is invalid
*/
export declare function validateLongitude(longitude: number): void;
/**
* Validates that a date is valid
* @param date The date to validate
* @throws Error if the date is invalid
*/
export declare function validateDate(date: Date): void;