Explorar o código

update ui.tsx

Yuki Takei %!s(int64=4) %!d(string=hai) anos
pai
achega
33c8da39a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 });
 };
 
-export const useIsDeviceSmallerThanMd = (): SWRResponse<boolean|null, any> => {
+export const useIsDeviceSmallerThanMd = (): SWRResponse<boolean|null, Error> => {
   const key: Key = isServer ? null : 'isDeviceSmallerThanMd';
 
   const { cache, mutate } = useSWRConfig();