瀏覽代碼

fix type errors of @growi/remark-lsx

Yuki Takei 2 年之前
父節點
當前提交
7d0b7fcc8f
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 1
      packages/remark-lsx/src/client/stores/lsx/lsx.ts
  2. 2 1
      packages/remark-lsx/tsconfig.json

+ 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": [