I\'m making a library and users should be able to create a custom object that extends a TypeScript interface. This custom object is then passed to a library function that merges