結果 : typescript if variable is type of interface