mirror of
https://github.com/lancedb/lancedb.git
synced 2026-09-13 00:32:31 +00:00
* Make `npm run docs` fail if there are any warnings. This will catch items missing from the API reference. * Add a check in our CI to make sure `npm run dos` runs without warnings and doesn't generate any new files (indicating it might be out-of-date. * Hide constructors that aren't user facing. * Remove unused enum `WriteMode`. Closes #2068
28 lines
537 B
Markdown
28 lines
537 B
Markdown
[**@lancedb/lancedb**](../../../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../../../globals.md) / [embedding](../README.md) / register
|
|
|
|
# Function: register()
|
|
|
|
```ts
|
|
function register(name?): (ctor) => any
|
|
```
|
|
|
|
## Parameters
|
|
|
|
* **name?**: `string`
|
|
|
|
## Returns
|
|
|
|
`Function`
|
|
|
|
### Parameters
|
|
|
|
* **ctor**: [`EmbeddingFunctionConstructor`](../interfaces/EmbeddingFunctionConstructor.md)<[`EmbeddingFunction`](../classes/EmbeddingFunction.md)<`any`, [`FunctionOptions`](../interfaces/FunctionOptions.md)>>
|
|
|
|
### Returns
|
|
|
|
`any`
|