diff --git a/types/lib/model.d.ts b/types/lib/model.d.ts index cabfd549d53f..32c9cb4a6e33 100644 --- a/types/lib/model.d.ts +++ b/types/lib/model.d.ts @@ -738,7 +738,7 @@ export interface UpsertOptions extends Logging, Transactionab /** * Options for Model.bulkCreate method */ -export interface BulkCreateOptions extends Logging, Transactionable, Hookable { +export interface BulkCreateOptions extends Logging, Transactionable, Hookable, SearchPathable { /** * Fields to insert (defaults to all fields) */ diff --git a/types/test/model.ts b/types/test/model.ts index afd9a1f07d51..af7cbf89d8e8 100644 --- a/types/test/model.ts +++ b/types/test/model.ts @@ -58,7 +58,7 @@ MyModel.count({ include: [MyModel], where: { '$num$': [10, 120] } }); MyModel.build({ int: 10 }, { include: OtherModel }); -MyModel.bulkCreate([{ int: 10 }], { include: OtherModel }); +MyModel.bulkCreate([{ int: 10 }], { include: OtherModel, searchPath: 'public' }); MyModel.update({}, { where: { foo: 'bar' }, paranoid: false});