Typescript Add Key To Object Conditionally