結果 : typescript check that object is type