Explorar o código

export type SWRResponseWithUtils

yohei0125 %!s(int64=3) %!d(string=hai) anos
pai
achega
d0d03c0a5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);