diff --git a/types/knex/index.d.ts b/types/knex/index.d.ts index 2fc1aa31d1..b684ccde74 100644 --- a/types/knex/index.d.ts +++ b/types/knex/index.d.ts @@ -490,6 +490,7 @@ declare namespace Knex { MySqlConnectionConfig | MsSqlConnectionConfig | Sqlite3ConnectionConfig | SocketConnectionConfig; pool?: PoolConfig; migrations?: MigratorConfig; + seeds?: SeedsConfig; acquireConnectionTimeout?: number; useNullAsDefault?: boolean; searchPath?: string; @@ -622,6 +623,10 @@ declare namespace Knex { disableTransactions?: boolean; } + interface SeedsConfig { + directory?: string; + } + interface Migrator { make(name: string, config?: MigratorConfig): Promise; latest(config?: MigratorConfig): Promise; diff --git a/types/knex/knex-tests.ts b/types/knex/knex-tests.ts index 610f51cc1f..c3d2981d9c 100644 --- a/types/knex/knex-tests.ts +++ b/types/knex/knex-tests.ts @@ -127,6 +127,9 @@ var knex = Knex({ }, migrations: { tableName: 'migrations' + }, + seeds: { + directory: 'seeds' } });