結果 : typescript check if variable implements interface