linter: fix
This commit is contained in:
parent
941ba2b1e0
commit
f62b3df8c5
3 changed files with 7 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
||||||
import * as JSON from "lib/Quran/JSON";
|
import * as JSON from 'lib/Quran/JSON';
|
||||||
import { Surah } from "lib/Quran/Surah";
|
import { Surah } from 'lib/Quran/Surah';
|
||||||
|
|
||||||
type Locale = 'ar' | 'en';
|
type Locale = 'ar' | 'en';
|
||||||
type Ayah = {id: number, text: string, readTimeMs: number };
|
interface Ayah {id: number, text: string, readTimeMs: number }
|
||||||
type Ayat = Ayah[];
|
type Ayat = Ayah[];
|
||||||
|
|
||||||
export { Surah, Ayah, Ayat, Locale, JSON };
|
export { Surah, Ayah, Ayat, Locale, JSON };
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
type Surah = {
|
interface Surah {
|
||||||
id: string
|
id: string
|
||||||
place_of_revelation: string
|
place_of_revelation: string
|
||||||
transliterated_name: string
|
transliterated_name: string
|
||||||
|
|
|
@ -33,7 +33,7 @@ export const DelayPerWord: Record<Locale, number> = {
|
||||||
|
|
||||||
export function numbers (locale: Locale) {
|
export function numbers (locale: Locale) {
|
||||||
return function(number: number): string {
|
return function(number: number): string {
|
||||||
return Number(number).toLocaleString(locale)
|
return Number(number).toLocaleString(locale);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ export function strings (locale: Locale) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function numberToDecimal(number: number, locale: Locale): string {
|
export function numberToDecimal(number: number, locale: Locale): string {
|
||||||
return number.toLocaleString(locale, {maximumFractionDigits: 1})
|
return number.toLocaleString(locale, { maximumFractionDigits: 1 })
|
||||||
.split(/([^\d])/)
|
.split(/([^\d])/)
|
||||||
.join(" ")
|
.join(' ');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue