mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Move ExtensionsStore to new format
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
42fd7839fa
commit
bd594e12d5
7 files changed
+110
-97
No files matched your search
+4
-3
@@ -1,3 +1,4 @@
|
||||
import type { Disposer } from "@k8slens/utilities";
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
|
||||
import type {
|
||||
@@ -5,9 +6,9 @@ import type {
|
||||
MessageChannelListener,
|
||||
} from "./message-channel-listener-injection-token";
|
||||
|
||||
export type EnlistMessageChannelListener = (
|
||||
listener: MessageChannelListener<MessageChannel<unknown>>,
|
||||
) => () => void;
|
||||
export type EnlistMessageChannelListener = <T>(
|
||||
listener: MessageChannelListener<MessageChannel<T>>,
|
||||
) => Disposer;
|
||||
|
||||
export const enlistMessageChannelListenerInjectionToken =
|
||||
getInjectionToken<EnlistMessageChannelListener>({
|
||||
|
||||
Reference in new issue
Block a user