فهرست منبع

fix response type

Shun Miyazawa 2 سال پیش
والد
کامیت
14317c025b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      apps/app/src/stores/yjs.ts

+ 1 - 1
apps/app/src/stores/yjs.ts

@@ -30,7 +30,7 @@ export const useCurrentPageYjsData = (): SWRResponse<CurrentPageYjsData, Error>
   };
 };
 
-export const useSWRMUTxCurrentPageYjsData = (): SWRMutationResponse<CurrentPageYjsData|null> => {
+export const useSWRMUTxCurrentPageYjsData = (): SWRMutationResponse<CurrentPageYjsData, Error> => {
   const key = 'currentPageYjsData';
   const { data: currentPageId } = useCurrentPageId();