add support of TS Optional variance annotations
#2102
Merged
Optional variance annotations
#2102