Apply readonly more broadly

This commit is contained in:
0x1eef 2024-05-15 22:18:20 -03:00
parent dda1f9abfd
commit 976f716aec

View file

@ -5,8 +5,8 @@ type TLocale = "ar" | "en";
type TAyat = Ayah[];
type TQuran = {
locale: TLocale;
surahs: Surah[];
readonly locale: TLocale;
readonly surahs: Surah[];
}
type TSurah = {
@ -18,16 +18,16 @@ type TSurah = {
};
type TAyah = {
id: number;
body: string;
readonly id: number;
readonly body: string;
}
/**
* Classes
*/
class Quran {
locale: TLocale;
surahs: Surah[];
readonly locale: TLocale;
readonly surahs: Surah[];
/**
* @returns {Array} The available locales