quran-meta
Version:
Library with meta data and functionality related to Holy Quran
11 lines (10 loc) • 462 B
TypeScript
import { AyahNo, Page, Surah } from "./types";
/**
* Determines if the given ayah is the first ayah of a juz.
*
* @param surah - The surah number.
* @param ayah - The ayah number.
* @param ayahMode - Optional flag to indicate if the ayah number is already a valid ayah ID.
* @returns The page number if the ayah is the first ayah of the page, otherwise -1.
*/
export declare function isAyahPageFirst(surah: Surah, ayah: AyahNo, ayahMode?: boolean): Page;