4 ms·You can use const enum and the ts compiler will just replace any enum reference with its value inplace.by AbuAssar 5y agoYou can use const enum and the ts compiler will just replace any enum reference with its value inplace.