Procházet zdrojové kódy

export type SWRResponseWithUtils

yohei0125 před 3 roky
rodič
revize
d0d03c0a5b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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);