結果 : typescript check object type at runtime