Просмотр исходного кода

export type SWRResponseWithUtils

yohei0125 3 лет назад
Родитель
Сommit
d0d03c0a5b
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';
 
-type SWRResponseWithUtils<U, D = any, E = any> = SWRResponse<D, E> & U;
+export type SWRResponseWithUtils<U, D = any, E = any> = SWRResponse<D, E> & U;
 
 export const withUtils = <U, D = any, E = any>(response: SWRResponse<D, E>, utils: U): SWRResponseWithUtils<U, D, E> => {
   return Object.assign(response, utils);