Просмотр исходного кода

fix type errors of @growi/remark-lsx

Yuki Takei 2 лет назад
Родитель
Сommit
7d0b7fcc8f

+ 1 - 1
packages/remark-lsx/src/client/stores/lsx/lsx.ts

@@ -27,7 +27,7 @@ export const useSWRxLsx = (
           : null;
       }
       catch (err) {
-        parseError = err;
+        parseError = err as Error;
       }
 
       // the first loading

+ 2 - 1
packages/remark-lsx/tsconfig.json

@@ -8,7 +8,8 @@
       "vitest/globals"
     ],
 
-    /* TOOD: remove below flags for strict checking */
+    /* TOOD: remove noInplicitAy: false for strict checking */
+    "strict": false,
     "noImplicitAny": false
   },
   "include": [