quran-meta
Version:
Library with meta data and functionality related to Holy Quran
17 lines (15 loc) • 542 B
text/typescript
import { Riwayas } from "./types.mjs";
//#region src/lists/index.d.ts
/**
* Retrieves the lists associated with a specific Riwaya.
* Uses switch statement to enable tree-shaking.
*
* @example
* ```typescript
* const hafsLists = getListsOfRiwaya('Hafs');
* ```
*/
declare function getListsOfRiwaya<R extends keyof Riwayas>(riwaya: R): Riwayas[R];
declare const getListOfRiwaya: <R extends keyof Riwayas, L extends keyof Riwayas[R]>(listName: L, riwaya?: R) => Riwayas[R][L];
//#endregion
export { getListOfRiwaya, getListsOfRiwaya };