I\'m having trouble combining generics with interface extensions in typescript. My basic use case is this: