One scenario is if you receive a string value from the server and have an enum type with string values defined. In TypeScript, how can you convert the string value to the enum type?
export enum ToolType {
ORA= 'orange', ST= 'stone' , DP= 'dupe'
}
const stringFromServer='orange';
// You need to transfer it to ToolType.ORA