diff --git a/src/index.ts b/src/index.ts index e6e1de9..2544573 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 }); });