MCPcopy Create free account
hub / github.com/TanStack/db / createMessagesCollection

Function createMessagesCollection

packages/db/tests/query/select-spread.test-d.ts:26–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24]
25
26function createMessagesCollection() {
27 return createCollection(
28 mockSyncCollectionOptions<Message>({
29 id: `messages`,
30 getKey: (m) => m.id,
31 initialData: initialMessages,
32 }),
33 )
34}
35
36describe(`Select spread typing`, () => {
37 test(`spreading the source alias projects the full row type`, () => {

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected