TypeScript Thing.Compare