1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix types

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-12-21 08:47:01 -05:00
parent d9a7a4846f
commit ea49929e78
3 changed files with 4 additions and 2 deletions

View File

@ -12,4 +12,6 @@ export default getGlobalOverride(createElectronWindowInjectable, () => () => ({
close: () => {},
send: () => {},
reload: () => {},
canGoBack: () => false,
canGoForward: () => false,
}));

View File

@ -3,7 +3,7 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { DiContainer } from "@ogre-tools/injectable";
import type { SendToViewArgs } from "../../main/start-main-application/lens-window/application-window/create-lens-window.injectable";
import type { SendToViewArgs } from "../../main/start-main-application/lens-window/application-window/create-electron-window.injectable";
import { overrideMessagingFromMainToWindow } from "./override-messaging-from-main-to-window";
import { overrideMessagingFromWindowToMain } from "./override-messaging-from-window-to-main";
import { overrideRequestingFromWindowToMain } from "./override-requesting-from-window-to-main";

View File

@ -6,8 +6,8 @@ import type { MessageChannelListener } from "../../common/utils/channel/message
import enlistMessageChannelListenerInjectableInRenderer from "../../renderer/utils/channel/channel-listeners/enlist-message-channel-listener.injectable";
import type { DiContainer } from "@ogre-tools/injectable";
import { getOrInsert, getOrInsertSet } from "../../common/utils";
import type { SendToViewArgs } from "../../main/start-main-application/lens-window/application-window/create-lens-window.injectable";
import { deserialize, serialize } from "v8";
import type { SendToViewArgs } from "../../main/start-main-application/lens-window/application-window/create-electron-window.injectable";
type ListenerSet = Set<MessageChannelListener<any>>;
type WindowListenerMap = Map<string, ListenerSet>;