Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript cast to parent type

car as Truck  // older syntax syntax: <Truck> car
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #cast #parent #type
ADD COMMENT
Topic
Name
1+5 =