結果 : typescript check if object matches interface