IndexConstructor

类型别名: IndexConstructor()<TKey>

ts
type IndexConstructor<TKey> = (id, expression, name?, options?) => BaseIndex<TKey>;
type IndexConstructor<TKey> = (id, expression, name?, options?) => BaseIndex<TKey>;

定义于: packages/db/src/indexes/base-index.ts:106

索引构造函数的类型

类型参数

TKey 扩展 string | number = string | number

参数

id

number

expression

BasicExpression

name?

string

options?

any

Returns (返回)

BaseIndex<TKey>

我们的合作伙伴
Code Rabbit
Electric
Prisma
订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。

订阅 Bytes

您的每周 JavaScript 资讯。每周一免费发送给超过 10 万开发者。

Bytes

无垃圾邮件。您可以随时取消订阅。