Closed AyahBot-Dev closed 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).
const enums
Madhab
preserveConstEnums
Thanks in advance!
Assalamu'alaikum,
Using
const enums
instead of using direct Object (like inMadhab
) will be a better choice for many things. It will reduce number of objects (if you turnpreserveConstEnums
off, TS compiler will automatically convert every occurrence to their value).Thanks in advance!