1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00

chore: improve type on import service (#4962)

## About the changes
Limit import type to what matters
This commit is contained in:
Gastón Fournier 2023-10-09 10:45:19 +02:00 committed by GitHub
parent e065e2a455
commit 34fc17146e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class ExportImportController extends Controller {
/** @deprecated gradually rolling out exportImportV2 */ /** @deprecated gradually rolling out exportImportV2 */
private transactionalExportImportService: ( private transactionalExportImportService: (
db: UnleashTransaction, db: UnleashTransaction,
) => ExportImportService; ) => Pick<ExportImportService, 'import' | 'validate'>;
private exportImportServiceV2: WithTransactional<ExportImportService>; private exportImportServiceV2: WithTransactional<ExportImportService>;

View File

@ -98,7 +98,7 @@ export interface IUnleashServices {
/** @deprecated prefer exportImportServiceV2, we're doing a gradual rollout */ /** @deprecated prefer exportImportServiceV2, we're doing a gradual rollout */
transactionalExportImportService: ( transactionalExportImportService: (
db: Knex.Transaction, db: Knex.Transaction,
) => ExportImportService; ) => Pick<ExportImportService, 'import' | 'validate'>;
transactionalFeatureToggleService: ( transactionalFeatureToggleService: (
db: Knex.Transaction, db: Knex.Transaction,
) => FeatureToggleService; ) => FeatureToggleService;