UNPKG

quran-meta

Version:

Library with meta data and functionality related to Holy Quran

9 lines (8 loc) 437 B
import { Surah } from "./types"; /** * Parses a string representation of a Surah number and converts it to a valid Surah type * @param str - The string containing the Surah number to parse * @returns The parsed Surah number as a Surah type * @throws {Error} If the string cannot be parsed as a number or if the number is not a valid Surah number */ export declare function surahStringParser(str: string, isStrict?: boolean): Surah;