yohei0125 3 лет назад
Родитель
Сommit
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);