I\'m trying to create a helper function in Typescript 4.1.2 that would return an object with the specified properties initialized to some values, but type inference does not