I wonder how a #functional implementation of the repository pattern (
https://8thlight.com/blog/mike-ebert/2013/03/23/the-repository-pattern.html )
would look like.
In the past I used to define an interface (in TypeScript) which defines instance
methods:
https://gist.github.com/coderbyheart/5137f9b900d68ba268757e9cbcc9bdac#file-simvendorrepository-ts