Skip to content

Commit 3a55f3f

Browse files
committed
chore: add type test script
1 parent c38d858 commit 3a55f3f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/svelte-db/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"build": "svelte-package --input ./src --output ./dist",
77
"test": "npx vitest --run",
8+
"test:types": "svelte-check --tsconfig ./tsconfig.json",
89
"lint": "eslint . --fix"
910
},
1011
"files": [

packages/svelte-db/src/useLiveQuery.svelte.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,15 +245,15 @@ export function useLiveQuery(
245245
typeof unwrappedParam.id === `string`
246246

247247
if (isCollection) {
248-
// It's already a collection, ensure sync is started for Vue hooks
248+
// It's already a collection, ensure sync is started for Svelte helpers
249249
unwrappedParam.startSyncImmediate()
250250
return unwrappedParam
251251
}
252252

253253
// Reference deps to make computed reactive to them
254254
deps.forEach((dep) => toValue(dep))
255255

256-
// Ensure we always start sync for Vue hooks
256+
// Ensure we always start sync for Svelte helpers
257257
if (typeof unwrappedParam === `function`) {
258258
return createLiveQueryCollection({
259259
query: unwrappedParam,

0 commit comments

Comments
 (0)