From 492b331164fcba3daf6e21e2ad7a9bc627f25543 Mon Sep 17 00:00:00 2001 From: Abdul Raheem Date: Sun, 29 Aug 2021 13:56:44 +0500 Subject: [PATCH] fix(types): extend BulkCreateOptions by SearchPathable add missing searchPath in BulkCreate.options: - extend BulkCreateOptions interface by SearchPathable to add missing searchPath option. - include searchPath in bulkCreate type test. Closes #13454 --- types/lib/model.d.ts | 2 +- types/test/model.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/lib/model.d.ts b/types/lib/model.d.ts index 29a754e09aa4..1349a903e76c 100644 --- a/types/lib/model.d.ts +++ b/types/lib/model.d.ts @@ -735,7 +735,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 fea3091a9f04..fe6e3831d53b 100644 --- a/types/test/model.ts +++ b/types/test/model.ts @@ -46,7 +46,7 @@ MyModel.count({ include: OtherModel }); 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});