From 2ed3df71daad022465851aa433ed4b7b4ac41840 Mon Sep 17 00:00:00 2001 From: elrrrrrrr Date: Fri, 4 Aug 2023 13:06:19 +0800 Subject: [PATCH] fix: remove any --- app/core/service/PackageSyncerService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/core/service/PackageSyncerService.ts b/app/core/service/PackageSyncerService.ts index f7f13f41..b608e999 100644 --- a/app/core/service/PackageSyncerService.ts +++ b/app/core/service/PackageSyncerService.ts @@ -571,7 +571,7 @@ export class PackageSyncerService extends AbstractService { } } const updateVersions: string[] = []; - const differentMetas: any[] = []; + const differentMetas: [PackageJSONType, Partial][] = []; let syncIndex = 0; for (const item of versions) { const version: string = item.version; @@ -608,7 +608,7 @@ export class PackageSyncerService extends AbstractService { // fix _npmUser field since https://github.com/cnpm/cnpmcore/issues/553 const metaDataKeys = [ 'peerDependenciesMeta', 'os', 'cpu', 'libc', 'workspaces', 'hasInstallScript', 'deprecated', '_npmUser' ]; const ignoreInAbbreviated = ['_npmUser']; - let diffMeta: any; + let diffMeta: Partial; for (const key of metaDataKeys) { let remoteItemValue = item[key]; // make sure hasInstallScript exists