batoulapps / adhan-js

High precision Islamic prayer time library for JavaScript
MIT License
368 stars 81 forks source link

[suggestion]: Use `const enums` for some constant variables #132

Closed AyahBot-Dev closed 1 year ago

AyahBot-Dev commented 1 year ago

Assalamu'alaikum,

Using const enums instead of using direct Object (like in Madhab) will be a better choice for many things. It will reduce number of objects (if you turn preserveConstEnums off, TS compiler will automatically convert every occurrence to their value).

Thanks in advance!