Typescript Add Property To Object Conditionally