How to type return of hook based on string passed as argument? - Theo's Typesafe Cult