Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Catch clause variable cannot have a type annotation.

catch(err) {
  if (err instanceof Error){}
}
 
PREVIOUS NEXT
Tagged: #Catch #clause #variable #type
ADD COMMENT
Topic
Name
9+1 =