Skip to content
1 min read · 91 words

Type Alias: VectorStoreConstructorLike<O> ​

ts
type VectorStoreConstructorLike<O> = (options: O) => BaseVectorStore;

Defined in: src/batteries/vector/vector_store_constructor.ts:17

Constructor signature for any BaseVectorStore adapter (the class itself or a subclass).

Type Parameters ​

Type ParameterDefault type
O extends BaseVectorStoreOptionsBaseVectorStoreOptions

Parameters ​

ParameterType
optionsO

Returns ​

BaseVectorStore

Remarks ​

Re-declared at the contract level so the factory's client resolver can recognise a valid adapter constructor without value-importing BaseVectorStore into modules where that would be awkward, mirroring SpooledArtifactConstructorLike.