結果 : typescript check if data matches interface