[ts] FIx parsing of nested extends
type in arrow type
#14604
Merged
extends
type in arrow type
#14604