Function: resolveClientCtor()
ts
function resolveClientCtor(client: unknown): Promise<(options: any) => any>;Defined in: batteries/vector/validation.ts:75
Resolve the client (class | sync resolver | async resolver) down to the adapter constructor, then validate the resolved value is a BaseVectorStore subclass — throwing the same E_INVALID_VECTOR_STORE_CONFIG if a resolver hands back something that isn't one.
Parameters
| Parameter | Type |
|---|---|
client | unknown |
Returns
Promise<(options: any) => any>