diff --git a/types/index.d.ts b/types/index.d.ts index 47c78170ec..9c77a5f9dd 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -2048,6 +2048,11 @@ export declare namespace Knex { primary(columnNames: readonly string[], options?: Readonly<{constraintName?: string, deferrable?: deferrableType}>): TableBuilder; /** @deprecated */ primary(columnNames: readonly string[], constraintName?: string): TableBuilder; + index( + columnNames: string | readonly (string | Raw)[], + indexName?: string, + indexType?: string + ): TableBuilder; index( columnNames: string | readonly (string | Raw)[], indexName?: string, @@ -2134,6 +2139,7 @@ export declare namespace Knex { indexName?: string, options?: Readonly<{indexType?: string, predicate?: QueryBuilder}> ): ColumnBuilder; + index(indexName?: string, indexType?: string): ColumnBuilder; } interface SqlLiteColumnBuilder extends ColumnBuilder {