Skip to content

Commit

Permalink
Use Readonly modifier for Management client
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage committed Oct 29, 2024
1 parent e843331 commit 3052c69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/core/models/log.models.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MigrationItemType, MapiAction, MapiType } from '../index.js';
import { MapiAction, MapiType, MigrationItemType } from '../index.js';

export type DebugType =
| 'error'
Expand Down
2 changes: 1 addition & 1 deletion lib/core/utils/management-client-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface ManagementClientConfig {
readonly baseUrl?: string;
}

export function getMigrationManagementClient(config: ManagementClientConfig): ManagementClient {
export function getMigrationManagementClient(config: ManagementClientConfig): Readonly<ManagementClient> {
return createManagementClient({
environmentId: config.environmentId,
retryStrategy: config.retryStrategy ?? defaultRetryStrategy,
Expand Down

0 comments on commit 3052c69

Please sign in to comment.