Update src/index.ts

This commit is contained in:
0x1eef 2024-10-22 09:02:51 -03:00
parent f745e33e76
commit 4b35f73fae

View file

@ -96,7 +96,7 @@ class Surah {
get ayat(): Ayah[] {
const ayat = require(`@json/${this.locale}/${this.id}.json`);
return ayat.map(([id, body]) => {
return ayat.map(([id, body]: [number, string]) => {
const ms = Quran.durations[this.id - 1][id - 1] * 1000;
return new Ayah({ id, body, ms });
});