mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-27 07:09:57 +00:00
fix(node): Relax EmbeddingFunction type guard (#370)
This commit is contained in:
@@ -28,7 +28,6 @@ export interface EmbeddingFunction<T> {
|
||||
}
|
||||
|
||||
export function isEmbeddingFunction<T> (value: any): value is EmbeddingFunction<T> {
|
||||
return Object.keys(value).length === 2 &&
|
||||
typeof value.sourceColumn === 'string' &&
|
||||
return typeof value.sourceColumn === 'string' &&
|
||||
typeof value.embed === 'function'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user