Skip to content

Commit

Permalink
fix: remove any
Browse files Browse the repository at this point in the history
  • Loading branch information
elrrrrrrr committed Aug 4, 2023
1 parent 378dcc6 commit 2ed3df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/service/PackageSyncerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ export class PackageSyncerService extends AbstractService {
}
}
const updateVersions: string[] = [];
const differentMetas: any[] = [];
const differentMetas: [PackageJSONType, Partial<PackageJSONType>][] = [];
let syncIndex = 0;
for (const item of versions) {
const version: string = item.version;
Expand Down Expand Up @@ -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<PackageJSONType>;
for (const key of metaDataKeys) {
let remoteItemValue = item[key];
// make sure hasInstallScript exists
Expand Down

0 comments on commit 2ed3df7

Please sign in to comment.