79075635

Date: 2024-10-10 18:06:29
Score: 1
Natty:
Report link

Using type as unknown should work

Use the below snippet as example

           try{
                //your code

            }catch(e : unknown  ){
                if( e instanceof Error){
                    setErrormessage(e.message)
                }
            }  
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kmax