Typescript Add Object Property Conditionally