From 34fc17146ebd159fb0e763a8432db4051e2fc13f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 9 Oct 2023 10:45:19 +0200 Subject: [PATCH] chore: improve type on import service (#4962) ## About the changes Limit import type to what matters --- .../features/export-import-toggles/export-import-controller.ts | 2 +- src/lib/types/services.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/features/export-import-toggles/export-import-controller.ts b/src/lib/features/export-import-toggles/export-import-controller.ts index 8f144ffb5ba8..763ce1162bc6 100644 --- a/src/lib/features/export-import-toggles/export-import-controller.ts +++ b/src/lib/features/export-import-toggles/export-import-controller.ts @@ -38,7 +38,7 @@ class ExportImportController extends Controller { /** @deprecated gradually rolling out exportImportV2 */ private transactionalExportImportService: ( db: UnleashTransaction, - ) => ExportImportService; + ) => Pick; private exportImportServiceV2: WithTransactional; diff --git a/src/lib/types/services.ts b/src/lib/types/services.ts index ff66b785fee4..3d9adaf45661 100644 --- a/src/lib/types/services.ts +++ b/src/lib/types/services.ts @@ -98,7 +98,7 @@ export interface IUnleashServices { /** @deprecated prefer exportImportServiceV2, we're doing a gradual rollout */ transactionalExportImportService: ( db: Knex.Transaction, - ) => ExportImportService; + ) => Pick; transactionalFeatureToggleService: ( db: Knex.Transaction, ) => FeatureToggleService;