From dc98d4042befa122dbde0147c73b849a80103e5a Mon Sep 17 00:00:00 2001
From: DarkSky <darksky2048@gmail.com>
Date: Fri, 12 Aug 2022 17:57:40 +0800
Subject: [PATCH] fix: types

---
 libs/components/account/src/login/fs.tsx         | 1 +
 libs/components/layout/src/header/FileSystem.tsx | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libs/components/account/src/login/fs.tsx b/libs/components/account/src/login/fs.tsx
index bdccdd47ee..2482e5187c 100644
--- a/libs/components/account/src/login/fs.tsx
+++ b/libs/components/account/src/login/fs.tsx
@@ -17,6 +17,7 @@ const cleanupWorkspace = (workspace: string) =>
 
 const requestPermission = async (workspace: string) => {
     await cleanupWorkspace(workspace);
+    // @ts-ignore
     const dirHandler = await window.showDirectoryPicker({
         id: 'AFFiNE_' + workspace,
         mode: 'readwrite',
diff --git a/libs/components/layout/src/header/FileSystem.tsx b/libs/components/layout/src/header/FileSystem.tsx
index a29ad9ea94..83c638c5b3 100644
--- a/libs/components/layout/src/header/FileSystem.tsx
+++ b/libs/components/layout/src/header/FileSystem.tsx
@@ -17,6 +17,7 @@ const cleanupWorkspace = (workspace: string) =>
 
 const requestPermission = async (workspace: string) => {
     await cleanupWorkspace(workspace);
+    // @ts-ignore
     const dirHandler = await window.showDirectoryPicker({
         id: 'AFFiNE_' + workspace,
         mode: 'readwrite',