Skip to content

Commit

Permalink
chore: improve type on import service (#4962)
Browse files Browse the repository at this point in the history
## About the changes
Limit import type to what matters
  • Loading branch information
gastonfournier authored Oct 9, 2023
1 parent e065e2a commit 34fc171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/types/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34fc171

Please sign in to comment.