Yuki Takei 4 лет назад
Родитель
Сommit
33c8da39a6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/app/src/stores/ui.tsx

+ 1 - 1
packages/app/src/stores/ui.tsx

@@ -53,7 +53,7 @@ export const useEditorMode = (editorMode?: EditorMode): SWRResponse<EditorMode,
   return useStaticSWR('editorMode', editorMode || null, { fallbackData: initialData });
   return useStaticSWR('editorMode', editorMode || null, { fallbackData: initialData });
 };
 };
 
 
-export const useIsDeviceSmallerThanMd = (): SWRResponse<boolean|null, any> => {
+export const useIsDeviceSmallerThanMd = (): SWRResponse<boolean|null, Error> => {
   const key: Key = isServer ? null : 'isDeviceSmallerThanMd';
   const key: Key = isServer ? null : 'isDeviceSmallerThanMd';
 
 
   const { cache, mutate } = useSWRConfig();
   const { cache, mutate } = useSWRConfig();