結果 : check if variable implements interface typescript