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:
parent
e065e2a455
commit
34fc17146e
@ -38,7 +38,7 @@ class ExportImportController extends Controller {
|
||||
/** @deprecated gradually rolling out exportImportV2 */
|
||||
private transactionalExportImportService: (
|
||||
db: UnleashTransaction,
|
||||
) => ExportImportService;
|
||||
) => Pick<ExportImportService, 'import' | 'validate'>;
|
||||
|
||||
private exportImportServiceV2: WithTransactional<ExportImportService>;
|
||||
|
||||
|
@ -98,7 +98,7 @@ export interface IUnleashServices {
|
||||
/** @deprecated prefer exportImportServiceV2, we're doing a gradual rollout */
|
||||
transactionalExportImportService: (
|
||||
db: Knex.Transaction,
|
||||
) => ExportImportService;
|
||||
) => Pick<ExportImportService, 'import' | 'validate'>;
|
||||
transactionalFeatureToggleService: (
|
||||
db: Knex.Transaction,
|
||||
) => FeatureToggleService;
|
||||
|
Loading…
Reference in New Issue
Block a user