Proper way to compose 'request' middleware to get context type inference without duplication? - TanStack