From ff79b4ce2703c9c951d6f5b477ca0bd97736b168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Mon, 16 Jun 2025 22:31:03 +0900 Subject: [PATCH] chore: fix type issue with filesystem access api --- package.json | 1 + pnpm-lock.yaml | 8 ++++++++ tsconfig.json | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c2c0d3..2efc3a1 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "@types/react-dom": "^19.1.5", "@types/react-syntax-highlighter": "^15.5.13", "@types/sql.js": "^1.4.9", + "@types/wicg-file-system-access": "^2023.10.6", "@typescript-eslint/eslint-plugin": "^8.32.1", "@typescript-eslint/parser": "^8.32.1", "@vitejs/plugin-react": "^4.4.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a212b87..58d6baf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -96,6 +96,9 @@ importers: '@types/sql.js': specifier: ^1.4.9 version: 1.4.9 + '@types/wicg-file-system-access': + specifier: ^2023.10.6 + version: 2023.10.6 '@typescript-eslint/eslint-plugin': specifier: ^8.32.1 version: 8.32.1(@typescript-eslint/parser@8.32.1(eslint@9.27.0(jiti@2.4.2))(typescript@5.8.3))(eslint@9.27.0(jiti@2.4.2))(typescript@5.8.3) @@ -1516,6 +1519,9 @@ packages: '@types/use-sync-external-store@0.0.6': resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==} + '@types/wicg-file-system-access@2023.10.6': + resolution: {integrity: sha512-YO/183gNRzZFSdKu+ikkD7ambAj4PhgjFAF2A/Mw/7wroSF6ne8r804RkpZzqrJ/F6DO2/IYlQF/ULOZ/bhKyA==} + '@typescript-eslint/eslint-plugin@8.32.1': resolution: {integrity: sha512-6u6Plg9nP/J1GRpe/vcjjabo6Uc5YQPAMxsgQyGC/I0RuukiG1wIe3+Vtg3IrSCVJDmqK3j8adrtzXSENRtFgg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -5037,6 +5043,8 @@ snapshots: '@types/use-sync-external-store@0.0.6': {} + '@types/wicg-file-system-access@2023.10.6': {} + '@typescript-eslint/eslint-plugin@8.32.1(@typescript-eslint/parser@8.32.1(eslint@9.27.0(jiti@2.4.2))(typescript@5.8.3))(eslint@9.27.0(jiti@2.4.2))(typescript@5.8.3)': dependencies: '@eslint-community/regexpp': 4.12.1 diff --git a/tsconfig.json b/tsconfig.json index ce94041..2fbac8c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "target": "ESNext", "lib": ["DOM", "DOM.Iterable", "ESNext"], - "types": ["vitest/globals", "@testing-library/jest-dom"], + "types": ["@types/wicg-file-system-access", "vitest/globals", "@testing-library/jest-dom"], "module": "ESNext", "skipLibCheck": true, /* Bundler mode */