import type { SWRResponse } from 'swr'; export type SWRResponseWithUtils = SWRResponse & U; export const withUtils = (response: SWRResponse, utils: U): SWRResponseWithUtils => { return Object.assign(response, utils); };