From 3052c69f0a6dfcd8bb90b80f60afe3c96d38eb72 Mon Sep 17 00:00:00 2001 From: Richard Sustek Date: Tue, 29 Oct 2024 13:05:23 +0100 Subject: [PATCH] Use Readonly modifier for Management client --- lib/core/models/log.models.ts | 2 +- lib/core/utils/management-client-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/models/log.models.ts b/lib/core/models/log.models.ts index 71ab6b7..fdc7c31 100644 --- a/lib/core/models/log.models.ts +++ b/lib/core/models/log.models.ts @@ -1,4 +1,4 @@ -import { MigrationItemType, MapiAction, MapiType } from '../index.js'; +import { MapiAction, MapiType, MigrationItemType } from '../index.js'; export type DebugType = | 'error' diff --git a/lib/core/utils/management-client-utils.ts b/lib/core/utils/management-client-utils.ts index 1855b58..c6c63c8 100644 --- a/lib/core/utils/management-client-utils.ts +++ b/lib/core/utils/management-client-utils.ts @@ -27,7 +27,7 @@ export interface ManagementClientConfig { readonly baseUrl?: string; } -export function getMigrationManagementClient(config: ManagementClientConfig): ManagementClient { +export function getMigrationManagementClient(config: ManagementClientConfig): Readonly { return createManagementClient({ environmentId: config.environmentId, retryStrategy: config.retryStrategy ?? defaultRetryStrategy,