Skip to content

Commit

Permalink
feat: fix type error
Browse files Browse the repository at this point in the history
Allow partial pkg-infos in order to satisfy test setups
  • Loading branch information
ComradeVanti committed Oct 25, 2023
1 parent b87bea4 commit 0f0e15e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export const fetchPackageDependencies = async function ({

// Get latest version from package info
export const getLatestVersion = function (
pkgInfo: PkgInfo
pkgInfo: Partial<PkgInfo>
): PkgVersion | undefined {
if (pkgInfo["dist-tags"]?.["latest"] !== undefined)
return pkgInfo["dist-tags"]["latest"];
Expand Down

0 comments on commit 0f0e15e

Please sign in to comment.