(deps: {
state: CollectionStateManager<TOutput, TKey, TSchema, TInput>
lifecycle: CollectionLifecycleManager<TOutput, TKey, TSchema, TInput>
defaultIndexType?: IndexConstructor<TKey>
events: CollectionEventsManager
})
| 224 | constructor() {} |
| 225 | |
| 226 | setDeps(deps: { |
| 227 | state: CollectionStateManager<TOutput, TKey, TSchema, TInput> |
| 228 | lifecycle: CollectionLifecycleManager<TOutput, TKey, TSchema, TInput> |
| 229 | defaultIndexType?: IndexConstructor<TKey> |
| 230 | events: CollectionEventsManager |
| 231 | }) { |
| 232 | this.state = deps.state |
| 233 | this.lifecycle = deps.lifecycle |
| 234 | this.defaultIndexType = deps.defaultIndexType |
| 235 | this.events = deps.events |
| 236 | } |
| 237 | |
| 238 | /** |
| 239 | * Creates an index on a collection for faster queries. |
nothing calls this directly
no outgoing calls
no test coverage detected