Skip to content

Commit

Permalink
Use proper type
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Oct 29, 2024
1 parent 3052c69 commit 8025a02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/import/import-manager.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { ContentItemModels, LanguageVariantModels, ManagementClient } from '@kontent-ai/management-sdk';

import { defaultExternalIdGenerator, Logger, getDefaultLogger, getMigrationManagementClient } from '../core/index.js';
import { defaultExternalIdGenerator, getDefaultLogger, getMigrationManagementClient, Logger } from '../core/index.js';
import { importContextFetcherAsync } from './context/import-context-fetcher.js';
import { ImportConfig, ImportContext, ImportResult } from './import.models.js';
import { assetsImporter } from './importers/assets-importer.js';
import { contentItemsImporter } from './importers/content-items-importer.js';
import { languageVariantImporter } from './importers/language-variant-importer.js';
import { importContextFetcherAsync } from './context/import-context-fetcher.js';

export function importManager(config: ImportConfig) {
const logger: Logger = config.logger ?? getDefaultLogger();
const targetEnvironmentClient: ManagementClient = getMigrationManagementClient(config);
const targetEnvironmentClient: Readonly<ManagementClient> = getMigrationManagementClient(config);

const importAssetsAsync = async (importContext: ImportContext): Promise<Pick<ImportResult, 'editedAssets' | 'uploadedAssets'>> => {
if (!importContext.categorizedImportData.assets.length) {
Expand Down

0 comments on commit 8025a02

Please sign in to comment.