結果 : typescript check if object is of interface type