diff --git a/jsconfig.app.json b/jsconfig.app.json index f3cff7d..382696f 100644 --- a/jsconfig.app.json +++ b/jsconfig.app.json @@ -7,7 +7,10 @@ "paths": { "@/*": ["./src/*"], "@package-json": ["./package.json"], - } + }, + "types": [ + "@types/w3c-web-serial" + ] }, "exclude": [], "include": [ diff --git a/jsconfig.node.json b/jsconfig.node.json index 139df57..71b0966 100644 --- a/jsconfig.node.json +++ b/jsconfig.node.json @@ -6,7 +6,9 @@ "noEmit": true, "module": "ESNext", "moduleResolution": "Bundler", - "types": ["node"] + "types": [ + "@types/node" + ] }, "exclude": [], "include": [ diff --git a/package.json b/package.json index 706de76..50d17db 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@tsconfig/node20": "^20.1.5", "@types/node": "^20.17.57", "@types/uuid": "^10.0.0", + "@types/w3c-web-serial": "^1.0.8", "@vitejs/plugin-legacy": "^6.1.1", "@vitejs/plugin-vue": "^5.2.4", "@vitejs/plugin-vue-jsx": "~4.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2fa6e65..bde3d42 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,6 +63,9 @@ importers: '@types/uuid': specifier: ^10.0.0 version: 10.0.0 + '@types/w3c-web-serial': + specifier: ^1.0.8 + version: 1.0.8 '@vitejs/plugin-legacy': specifier: ^6.1.1 version: 6.1.1(terser@5.40.0)(vite@6.3.5(@types/node@20.17.57)(less@4.3.0)(terser@5.40.0)) @@ -975,6 +978,9 @@ packages: '@types/uuid@10.0.0': resolution: {integrity: sha512-7gqG38EyHgyP1S+7+xomFtL+ZNHcKv6DwNaCZmJmo1vgMugyF3TCnXVg4t1uk89mLNwnLtnY3TpOpCOyp1/xHQ==} + '@types/w3c-web-serial@1.0.8': + resolution: {integrity: sha512-QQOT+bxQJhRGXoZDZGLs3ksLud1dMNnMiSQtBA0w8KXvLpXX4oM4TZb6J0GgJ8UbCaHo5s9/4VQT8uXy9JER2A==} + '@types/web-bluetooth@0.0.21': resolution: {integrity: sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==} @@ -2883,6 +2889,8 @@ snapshots: '@types/uuid@10.0.0': {} + '@types/w3c-web-serial@1.0.8': {} + '@types/web-bluetooth@0.0.21': {} '@vitejs/plugin-legacy@6.1.1(terser@5.40.0)(vite@6.3.5(@types/node@20.17.57)(less@4.3.0)(terser@5.40.0))':