From 4d874e2d6945ec1a87d66964d2f31e2c8d6ac015 Mon Sep 17 00:00:00 2001 From: Erick Zhao <erick@hotmail.ca> Date: Mon, 10 Jun 2024 15:53:00 -0700 Subject: [PATCH] chore: minor eslint and type fixes (#287) --- src/index.ts | 3 +-- src/types.ts | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index ff2323a16..77a0d0594 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,6 @@ import { getNodeArch, ensureIsTruthyString, isOfficialLinuxIA32Download, - withTempDirectory, } from './utils'; export { getHostArch } from './utils'; @@ -41,7 +40,7 @@ async function validateArtifact( artifactDetails: ElectronArtifactDetails, downloadedAssetPath: string, _downloadArtifact: ArtifactDownloader, -) { +): Promise<void> { return await withTempDirectoryIn(artifactDetails.tempDirectory, async tempFolder => { // Don't try to verify the hash of the hash file itself // and for older versions that don't have a SHASUMS256.txt diff --git a/src/types.ts b/src/types.ts index 0d98db32c..1b247435c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -137,8 +137,6 @@ export type ElectronArtifactDetails = | ElectronPlatformArtifactDetails | ElectronGenericArtifactDetails; -export type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; - export type ElectronPlatformArtifactDetailsWithDefaults = | (Omit<ElectronPlatformArtifactDetails, 'platform' | 'arch'> & { platform?: string;