mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
- Reallow non-JSON serializable complex types - Remove unnecessary JSON serialization step to IPC - Remove unnecesary injectable-ization of MessageChannel and RequestChannel declarations - Add channel listener injectable getter function to remove general need for type casting and improve type safety Signed-off-by: Sebastian Malton <sebastian@malton.name>
13 lines
499 B
TypeScript
13 lines
499 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import { IpcRendererNavigationEvents } from "../../renderer/navigation/events";
|
|
import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
|
|
|
|
export type AppNavigationChannel = MessageChannel<string>;
|
|
|
|
export const appNavigationChannel: AppNavigationChannel = {
|
|
id: IpcRendererNavigationEvents.NAVIGATE_IN_APP,
|
|
};
|