MCPcopy Index your code
hub / github.com/TanStack/db / createPosts

Function createPosts

packages/db/tests/query/case-when.test-d.ts:41–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41function createPosts() {
42 return createCollection(
43 mockSyncCollectionOptions<Post>({
44 id: `case-when-type-posts`,
45 getKey: (post) => post.id,
46 initialData: [],
47 }),
48 )
49}
50
51describe(`caseWhen types`, () => {
52 test(`infers scalar branch values`, () => {

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected