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

Method setDeps

packages/db/src/collection/mutations.ts:56–64  ·  view source on GitHub ↗
(deps: {
    lifecycle: CollectionLifecycleManager<TOutput, TKey, TSchema, TInput>
    state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
    collection: CollectionImpl<TOutput, TKey, TUtils, TSchema, TInput>
  })

Source from the content-addressed store, hash-verified

54 }
55
56 setDeps(deps: {
57 lifecycle: CollectionLifecycleManager<TOutput, TKey, TSchema, TInput>
58 state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
59 collection: CollectionImpl<TOutput, TKey, TUtils, TSchema, TInput>
60 }) {
61 this.lifecycle = deps.lifecycle
62 this.state = deps.state
63 this.collection = deps.collection
64 }
65
66 private ensureStandardSchema(schema: unknown): StandardSchema<TOutput> {
67 // If the schema already implements the standard-schema interface, return it

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected