typescript class extend interface