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 */
|
/** @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>;
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user