結果 : typescript check object against type