yohei0125 пре 3 година
родитељ
комит
e84dc97e0d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/core/src/utils/with-utils.ts

+ 1 - 1
packages/core/src/utils/with-utils.ts

@@ -1,6 +1,6 @@
 import { SWRResponse } from 'swr';
 
-export type SWRResponseWithUtils<R extends SWRResponse, Utils> = R & Utils;
+export type SWRResponseWithUtils<R extends SWRResponse, U> = R & U;
 
 export const withUtils = <R extends SWRResponse, U>(response: R, utils: U): SWRResponseWithUtils<R, U> => {
   return Object.assign(response, utils);