Fix errors blocking compilation

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-01-10 15:18:12 -05:00
1 parent a1d2fa05d7
commit 3fbbf022b9
7 files changed
+14 -5

No files matched your search

+6
View File
@@ -21,6 +21,8 @@ const fsInjectable = getInjectable({
rm,
access,
stat,
chmod,
copyFile,
},
ensureDir,
ensureDirSync,
@@ -34,6 +36,7 @@ const fsInjectable = getInjectable({
pathExists,
copy,
createReadStream,
createWriteStream,
} = fse;
return {
@@ -56,6 +59,9 @@ const fsInjectable = getInjectable({
ensureDirSync,
createReadStream,
stat,
chmod,
copyFile,
createWriteStream,
};
},
causesSideEffects: true,
@@ -9,7 +9,7 @@ import type { BaseStoreDependencies } from "../../../common/base-store/base-stor
import { BaseStore } from "../../../common/base-store/base-store";
import type { LensExtensionId } from "../../lens-extension";
import { getOrInsertWithAsync, toJS } from "../../../common/utils";
import type { EnsureDirectory } from "../../../common/fs/ensure-dir.injectable";
import type { EnsureDirectory } from "../../../common/fs/ensure-directory.injectable";
import type { JoinPaths } from "../../../common/path/join-paths.injectable";
import type { RandomBytes } from "../../../common/utils/random-bytes.injectable";
@@ -5,7 +5,7 @@
import type { ClusterId, ClusterState } from "../../../../common/cluster-types";
import type { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token";
import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
import type { RequestChannel } from "../../../../common/utils/channel/request-channel";
export interface ClusterStateSync {
clusterId: ClusterId;
@@ -4,7 +4,7 @@
*/
import type { OpenDialogOptions } from "electron";
import type { RequestChannel } from "../../../common/utils/channel/request-channel-listener-injection-token";
import type { RequestChannel } from "../../../common/utils/channel/request-channel";
export type PathPickingResponse = {
canceled: true;
@@ -4,7 +4,7 @@
*/
import type { MessageChannel } from "../../../../common/utils/channel/message-channel-listener-injection-token";
import type { RequestChannel } from "../../../../common/utils/channel/request-channel-listener-injection-token";
import type { RequestChannel } from "../../../../common/utils/channel/request-channel";
export type SystemThemeType = "dark" | "light";
+3
View File
@@ -62,6 +62,9 @@ export const getOverrideFsWithFakes = () => {
ensureDirSync,
createReadStream: root.createReadStream as any,
stat: root.promises.stat as any,
chmod: root.promises.chmod,
copyFile: root.promises.copyFile,
createWriteStream: root.createWriteStream as any,
}));
};
};
+1 -1
View File
@@ -2749,7 +2749,7 @@
dependencies:
"@types/node" "*"
"@types/ws@^8.5.1":
"@types/ws@^8.5.1", "@types/ws@^8.5.3":
version "8.5.3"
resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.3.tgz#7d25a1ffbecd3c4f2d35068d0b283c037003274d"
integrity sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==