結果 : typescript check type of object at runtime