From 8025a022718250853adbc4bfc14d7e490b68f295 Mon Sep 17 00:00:00 2001 From: Richard Sustek Date: Tue, 29 Oct 2024 13:27:42 +0100 Subject: [PATCH] Use proper type --- lib/import/import-manager.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/import/import-manager.ts b/lib/import/import-manager.ts index e532332..fa89151 100644 --- a/lib/import/import-manager.ts +++ b/lib/import/import-manager.ts @@ -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 = getMigrationManagementClient(config); const importAssetsAsync = async (importContext: ImportContext): Promise> => { if (!importContext.categorizedImportData.assets.length) {