Skip to content

Commit a7ed95a

Browse files
committed
refactor: move Dispatcher to common
1 parent 5d9cde3 commit a7ed95a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/extension/src/manager/contexts-states-dispatcher.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import { expect, test, vi } from 'vitest';
2020

21-
import type { IDisposable } from '../types/disposable.js';
2221
import type { ContextPermission } from '/@common/model/kubernetes-contexts-permissions.js';
2322

2423
import type { ApiSenderType } from '/@common/model/api-sender.js';
@@ -28,6 +27,7 @@ import type { DispatcherEvent } from './contexts-dispatcher.js';
2827
import type { ContextsManager } from './contexts-manager.js';
2928
import { ContextsStatesDispatcher } from './contexts-states-dispatcher.js';
3029
import type { KubeConfigSingleContext } from '../types/kubeconfig-single-context.js';
30+
import type { IDisposable } from '/@common/model/disposable.js';
3131

3232
test('ContextsStatesDispatcher should call updateHealthStates when onContextHealthStateChange event is fired', () => {
3333
const manager: ContextsManager = {

packages/extension/src/types/emitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* SPDX-License-Identifier: Apache-2.0
1717
***********************************************************************/
1818

19-
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
2019

21-
import type { IDisposable } from './disposable.js';
20+
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
21+
import type { IDisposable } from '/@common/model/disposable';
2222

2323
export type DisposableGroup = { push(disposable: IDisposable): void } | { add(disposable: IDisposable): void };
2424

0 commit comments

Comments
 (0)