Update src/index.ts
This commit is contained in:
parent
f745e33e76
commit
4b35f73fae
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Surah {
|
||||||
|
|
||||||
get ayat(): Ayah[] {
|
get ayat(): Ayah[] {
|
||||||
const ayat = require(`@json/${this.locale}/${this.id}.json`);
|
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;
|
const ms = Quran.durations[this.id - 1][id - 1] * 1000;
|
||||||
return new Ayah({ id, body, ms });
|
return new Ayah({ id, body, ms });
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue