mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix type errors
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
5a502c0a96
commit
6bd55d3d0c
@ -1,22 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
||||||
*/
|
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
|
||||||
import type { RequestChannelHandler } from "../../../common/utils/channel/request-channel-listener-injection-token";
|
|
||||||
import type { SyncBoxInitialValueChannel } from "../../../common/utils/sync-box/channels";
|
|
||||||
import { syncBoxInjectionToken } from "../../../common/utils/sync-box/sync-box-injection-token";
|
|
||||||
|
|
||||||
const syncBoxInitialValueChannelHandlerInjectable = getInjectable({
|
|
||||||
id: "sync-box-initial-value-channel-handler",
|
|
||||||
instantiate: (di): RequestChannelHandler<SyncBoxInitialValueChannel> => {
|
|
||||||
const syncBoxes = di.injectMany(syncBoxInjectionToken);
|
|
||||||
|
|
||||||
return () => syncBoxes.map((box) => ({
|
|
||||||
id: box.id,
|
|
||||||
value: box.value.get(),
|
|
||||||
}));
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export default syncBoxInitialValueChannelHandlerInjectable;
|
|
||||||
@ -3,9 +3,10 @@
|
|||||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
*/
|
*/
|
||||||
import type { DiContainer } from "@ogre-tools/injectable";
|
import type { DiContainer } from "@ogre-tools/injectable";
|
||||||
import type { RequestChannel, RequestChannelListener } from "../../common/utils/channel/request-channel-listener-injection-token";
|
import type { RequestChannel } from "../../common/utils/channel/request-channel-listener-injection-token";
|
||||||
import type { RequestFromChannel } from "../../common/utils/channel/request-from-channel-injection-token";
|
import type { RequestFromChannel } from "../../common/utils/channel/request-from-channel-injection-token";
|
||||||
import enlistRequestChannelListenerInjectableInMain from "../../main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable";
|
import enlistRequestChannelListenerInjectableInMain from "../../main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable";
|
||||||
|
import type { RequestChannelListener } from "../../main/utils/channel/channel-listeners/listener-tokens";
|
||||||
import requestFromChannelInjectable from "../../renderer/utils/channel/request-from-channel.injectable";
|
import requestFromChannelInjectable from "../../renderer/utils/channel/request-from-channel.injectable";
|
||||||
|
|
||||||
export const overrideRequestingFromWindowToMain = (mainDi: DiContainer) => {
|
export const overrideRequestingFromWindowToMain = (mainDi: DiContainer) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user