Skip to content

Commit 185ba68

Browse files
author
bealqiu
committed
fix: resolve TS build errors in sync-engine and SyncSettings
1 parent 8f4ff03 commit 185ba68

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

packages/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"devDependencies": {
7575
"@tailwindcss/vite": "^4.0.0",
7676
"@tauri-apps/cli": "^2.10.1",
77+
"@types/d3": "^7.4.3",
7778
"@types/d3-scale": "^4.0.9",
7879
"@types/d3-shape": "^3.1.8",
7980
"@types/react": "^19.1.8",

packages/app/src/components/settings/SyncSettings.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export function SyncSettings() {
1818
lastSyncAt,
1919
lastResult,
2020
error,
21-
progress,
2221
pendingDirection,
2322
loadConfig,
2423
testConnection,

packages/core/src/sync/sync-engine.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ import {
2323
/** Get a sync metadata value from the database */
2424
async function getSyncMeta(key: string): Promise<string | null> {
2525
const db = await getDB();
26-
const rows = await db.select<{ value: string }[]>(
26+
const rows = await db.select<{ value: string }>(
2727
"SELECT value FROM sync_metadata WHERE key = ?",
2828
[key],
2929
);
30-
return (rows as { value: string }[])[0]?.value ?? null;
30+
return rows[0]?.value ?? null;
3131
}
3232

3333
/** Set a sync metadata value in the database */
@@ -350,7 +350,7 @@ async function syncFiles(
350350

351351
// Get all books from DB
352352
const books = await db.select<
353-
{ id: string; file_path: string; file_hash: string; cover_url: string }[]
353+
{ id: string; file_path: string; file_hash: string; cover_url: string }
354354
>(
355355
"SELECT id, file_path, file_hash, cover_url FROM books",
356356
[],

pnpm-lock.yaml

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)