結果 : typescript check if object type of interface