Skip to content

Commit 78af495

Browse files
committed
fix(db-sqlite-persistence-core): import generic adapter type in type tests
Avoid the non-generic barrel type resolution seen in CI by importing PersistenceAdapter directly from the persisted module in the schema inference tests. Made-with: Cursor
1 parent d77572e commit 78af495

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/db-sqlite-persistence-core/tests/persisted.test-d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { describe, expectTypeOf, it } from 'vitest'
22
import { z } from 'zod'
33
import { createCollection } from '@tanstack/db'
44
import { persistedCollectionOptions } from '../src'
5-
import type { PersistedCollectionUtils, PersistenceAdapter } from '../src'
5+
import type { PersistedCollectionUtils } from '../src'
6+
import type { PersistenceAdapter } from '../src/persisted'
67
import type { SyncConfig, UtilsRecord, WithVirtualProps } from '@tanstack/db'
78

89
type OutputWithVirtual<

0 commit comments

Comments
 (0)