Typescript Function Add Property