I\'m trying to add types for a library with an interesting API. To simplify the problem, it\'s a function that takes this:
const payload = { returns: { user